/* Copyright 2018 Glen Joseph Fernandes (glenjofe@gmail.com) Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) */ #include #if !defined(BOOST_NO_CXX11_FINAL) #include #include struct type1 { operator bool() const { return false; } }; struct type2 final { operator bool() const { return false; } }; #if !defined(BOOST_IS_FINAL) namespace boost { template<> struct is_final : true_type { }; } /* boost*/ #endif template void test() { boost::compressed_pair p; BOOST_TEST(!p.first()); BOOST_TEST(!p.second()); } int main() { test(); test(); test(); return boost::report_errors(); } #else int main() { return 0; } #endif