The following tests are in the link
First test a header-only library
Contents in the main.cpp
#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>
int main()
{
using namespace boost::lambda;
typedef std::istream_iterator<int> in;
std::for_each(
in(std::cin), in(), std::cout << (_1 * 3) << " ");
}
Hit F5 and type following into the resulting window, followed by Return key:
1 2 3
The output should be:
3 6 9
Then test the built binary library
Change contents in main.cpp to:
#include <boost/regex.hpp> #include <iostream> #include <string> int main() { std::string line; boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" ); while (std::cin) { std::getline(std::cin, line); boost::smatch matches; if (boost::regex_match(line, matches, pat)) std::cout << matches[2] << std::endl; } }
Build the solution. go to the .\debug directory where a Test.exe file is generated.
Under the directory, generate a jayne.txt file whose contents are:
To: George Shmidlap From: Rita Marlowe Subject: Will Success Spoil Rock Hunter? --- See subject.
From the cmd, go to the same directory, type:
Test.exe < jayne.txt
And the following response will turn up
Will Success Spoil Rock Hunter?
However, the above installation was not compatible with Kinect. So another version is installed instead.
1 Download boost_1_55_0-msvc-12.0-64.exe online.
2 Double click, it is all done.
The root directory is C:\local\boost_1_55_0
and the library directory is C:\local\boost_1_55_0\lib64-msvc-12.0
Arising problem----- did not pass the second test mentioned above.