mirror of
https://github.com/boostorg/hof.git
synced 2026-02-01 08:32:12 +00:00
14 lines
489 B
C++
14 lines
489 B
C++
#include <boost/fit/indirect.hpp>
|
|
#include "test.hpp"
|
|
|
|
BOOST_FIT_TEST_CASE()
|
|
{
|
|
BOOST_FIT_TEST_CHECK(3 == boost::fit::indirect(std::unique_ptr<binary_class>(new binary_class()))(1, 2));
|
|
BOOST_FIT_TEST_CHECK(3 == boost::fit::reveal(boost::fit::indirect(std::unique_ptr<binary_class>(new binary_class())))(1, 2));
|
|
|
|
binary_class f;
|
|
|
|
BOOST_FIT_TEST_CHECK(3 == boost::fit::indirect(&f)(1, 2));
|
|
BOOST_FIT_TEST_CHECK(3 == boost::fit::reveal(boost::fit::indirect(&f))(1, 2));
|
|
}
|