]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/proto/example/lambda.cpp
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)
7 // This example builds a simple but functional lambda library using Proto.
10 #include "./lambda.hpp"
14 using namespace boost::lambda
;
15 int i
= (_1
+ _1
)(42);
16 std::cout
<< i
<< std::endl
;