1 | // |
---|---|
2 | // Copyright 2018-2024 Antony Polukhin. |
3 | // |
4 | // Distributed under the Boost Software License, Version 1.0. (See |
5 | // accompanying file LICENSE_1_0.txt or copy at |
6 | // http://www.boost.org/LICENSE_1_0.txt) |
7 | |
8 | #include <boost/type_index/ctti_type_index.hpp> |
9 | #include <string> |
10 | |
11 | #include <boost/core/lightweight_test.hpp> |
12 | |
13 | class empty |
14 | { |
15 | }; |
16 | |
17 | int main() |
18 | { |
19 | std::string name = boost::typeindex::ctti_type_index::type_id<empty>().pretty_name(); |
20 | BOOST_TEST(name.find("empty") != std::string::npos); |
21 | return boost::report_errors(); |
22 | } |
23 | |
24 |