// Copyright David Abrahams 2002. Permission to copy, use, // modify, sell and distribute this software is granted provided this // copyright notice appears in all copies. This software is provided // "as is" without express or implied warranty, and with no claim as // to its suitability for any purpose. #include #include #include #include "test_class.hpp" using namespace boost::python; using namespace boost::python::converter; template struct undefined; int main() { BOOST_STATIC_ASSERT(is_object_manager >::value); BOOST_STATIC_ASSERT(!is_object_manager::value); BOOST_STATIC_ASSERT(!is_object_manager >::value); BOOST_STATIC_ASSERT(is_reference_to_object_manager&>::value); BOOST_STATIC_ASSERT(is_reference_to_object_manager const&>::value); BOOST_STATIC_ASSERT(is_reference_to_object_manager volatile&>::value); BOOST_STATIC_ASSERT(is_reference_to_object_manager const volatile&>::value); // undefined >::t1> x1; // undefined >::t2> x2; BOOST_STATIC_ASSERT(!is_reference_to_object_manager >::value); BOOST_STATIC_ASSERT(!is_reference_to_object_manager >::value); BOOST_STATIC_ASSERT(!is_reference_to_object_manager&>::value); BOOST_STATIC_ASSERT(!is_reference_to_object_managerconst&>::value); return 0; }