]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/functional/factory/test/value_factory_move.cpp
2 Copyright 2019 Glen Joseph Fernandes
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
8 #include <boost/config.hpp>
9 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && \
10 !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
11 #include <boost/functional/value_factory.hpp>
12 #include <boost/core/lightweight_test.hpp>
20 : value_(a
.value_
) { }
32 explicit sum(arg
&& a1
, arg
&& a2
)
33 : value_(a1
.get() + a2
.get()) { }
45 sum
s(boost::value_factory
<sum
>()(arg(1), arg(2)));
46 BOOST_TEST(s
.get() == 3);
47 return boost::report_errors();