// Copyright 2021 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include #include struct X { }; struct Y { }; std::ostream& operator<<( std::ostream& os, Y const& /*y*/ ) { os << "Y()"; return os; } int main() { BOOST_TEST_TRAIT_TRUE((boost::variant2::detail::is_output_streamable)); BOOST_TEST_TRAIT_TRUE((boost::variant2::detail::is_output_streamable)); BOOST_TEST_TRAIT_TRUE((boost::variant2::detail::is_output_streamable)); BOOST_TEST_TRAIT_FALSE((boost::variant2::detail::is_output_streamable)); BOOST_TEST_TRAIT_FALSE((boost::variant2::detail::is_output_streamable)); BOOST_TEST_TRAIT_TRUE((boost::variant2::detail::is_output_streamable)); BOOST_TEST_TRAIT_TRUE((boost::variant2::detail::is_output_streamable)); BOOST_TEST_TRAIT_TRUE((boost::variant2::detail::is_output_streamable>)); BOOST_TEST_TRAIT_FALSE((boost::variant2::detail::is_output_streamable>)); BOOST_TEST_TRAIT_TRUE((boost::variant2::detail::is_output_streamable>)); BOOST_TEST_TRAIT_TRUE((boost::variant2::detail::is_output_streamable>)); return boost::report_errors(); }