// Unit test for boost::any. // // See http://www.boost.org for most recent version, including documentation. // // Copyright Antony Polukhin, 2013-2019. // // Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt). #include #include #include #include #include "test.hpp" #include #ifdef BOOST_NO_CXX11_RVALUE_REFERENCES int main() { BOOST_STATIC_ASSERT(false); return EXIT_SUCCESS; } #else int main() { int i = boost::any_cast(10); (void)i; return EXIT_SUCCESS; } #endif