1 /*============================================================================= 2 Copyright (c) 2017 Paul Fultz II 3 static.cpp 4 Distributed under the Boost Software License, Version 1.0. (See accompanying 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 ==============================================================================*/ 7 #include <boost/hof/static.hpp> 8 #include "test.hpp" 9 10 // TODO: Test infix 11 12 static constexpr boost::hof::static_<binary_class> binary_static = {}; 13 14 static constexpr boost::hof::static_<void_class> void_static = {}; 15 16 static constexpr boost::hof::static_<mono_class> mono_static = {}; 17 18 BOOST_HOF_TEST_CASE()19BOOST_HOF_TEST_CASE() 20 { 21 void_static(1); 22 BOOST_HOF_TEST_CHECK(3 == binary_static(1, 2)); 23 BOOST_HOF_TEST_CHECK(3 == mono_static(2)); 24 } 25