// // Copyright 2012-2020 Antony Polukhin. // // // 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) // #define TEST_LIB_SOURCE #include "test_lib.hpp" namespace user_defined_namespace { class user_defined{}; } namespace test_lib { boost::typeindex::type_index get_integer() { return boost::typeindex::type_id(); } boost::typeindex::type_index get_user_defined_class() { return boost::typeindex::type_id(); } boost::typeindex::type_index get_const_integer() { return boost::typeindex::type_id_with_cvr(); } boost::typeindex::type_index get_const_user_defined_class() { return boost::typeindex::type_id_with_cvr(); } #if !defined(BOOST_HAS_PRAGMA_DETECT_MISMATCH) || !defined(_CPPRTTI) // Just do nothing void accept_typeindex(const boost::typeindex::type_index&) {} #endif }