lambda2/test/quick.cpp
2020-09-06 21:37:17 +03:00

16 lines
353 B
C++

// Copyright 2020 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/lambda2.hpp>
#include <boost/core/lightweight_test.hpp>
int main()
{
using namespace boost::lambda2;
BOOST_TEST_EQ( (_1 + _2 * _3)( 1, 2, 3), 1 + 2 * 3 );
return boost::report_errors();
}