| 1 | // |
| 2 | // Copyright 2012-2024 Antony Polukhin. |
| 3 | // |
| 4 | // |
| 5 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 6 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | // |
| 8 | |
| 9 | #define TEST_LIB_SOURCE |
| 10 | #include "test_lib_anonymous.hpp" |
| 11 | |
| 12 | namespace { |
| 13 | class user_defined{}; |
| 14 | } // anonymous namespace |
| 15 | |
| 16 | namespace test_lib { |
| 17 | |
| 18 | boost::typeindex::type_index get_anonymous_user_defined_class() { |
| 19 | return boost::typeindex::type_id<user_defined>(); |
| 20 | } |
| 21 | |
| 22 | boost::typeindex::type_index get_const_anonymous_user_defined_class() { |
| 23 | return boost::typeindex::type_id_with_cvr<const user_defined>(); |
| 24 | } |
| 25 | |
| 26 | } |
| 27 | |
| 28 | |