12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // Copyright (c) 2012-2019 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<int>();
- }
- boost::typeindex::type_index get_user_defined_class() {
- return boost::typeindex::type_id<user_defined_namespace::user_defined>();
- }
- boost::typeindex::type_index get_const_integer() {
- return boost::typeindex::type_id_with_cvr<const int>();
- }
- boost::typeindex::type_index get_const_user_defined_class() {
- return boost::typeindex::type_id_with_cvr<const user_defined_namespace::user_defined>();
- }
- #if !defined(BOOST_HAS_PRAGMA_DETECT_MISMATCH) || !defined(_CPPRTTI)
- // Just do nothing
- void accept_typeindex(const boost::typeindex::type_index&) {}
- #endif
- }
|