1 //[ Lambda 2 /////////////////////////////////////////////////////////////////////////////// 3 // Copyright 2008 Eric Niebler. Distributed under the Boost 4 // Software License, Version 1.0. (See accompanying file 5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 // 7 // This example builds a simple but functional lambda library using Proto. 8 9 #include <iostream> 10 #include "./lambda.hpp" 11 main()12int main() 13 { 14 using namespace boost::lambda; 15 int i = (_1 + _1)(42); 16 std::cout << i << std::endl; 17 } 18