1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Copyright 2021 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include <boost/lambda/lambda.hpp> #include <boost/core/lightweight_test.hpp> int main() { using namespace boost::lambda; BOOST_TEST_EQ( (_1 + _2)(1, 2), 3 ); return boost::report_errors(); }