1. Download boost's Windows distribution to boost official web. Assuming it's boost_1_58_0.7z.
2. Decompression, get Boost_1_58_0 directory
3. Create the directory C:\Program files\boost, move the boost_1_58_0 directory you extracted from the previous step to the newly created directory.
4. Open Visual Studio and create a new C + + project
5. Open the properties of the project, configure properties->c/c++->general->additional include Directories, add C:\Program here Files\boost\boost_1_58_0
6. Write test code and compile
#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) << "");
Note: If you follow the steps above, you will not be able to compile your program, then you need to compile boost, please refer to the following official website article.
Reference: Search on Google for "install boost to Visual Studio" and find the article "boost Getting started on Windows" at Boost's website