mirror of
https://github.com/boostorg/lambda.git
synced 2026-01-20 16:42:16 +00:00
16 lines
341 B
C++
16 lines
341 B
C++
// 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();
|
|
}
|