File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -581,13 +581,13 @@ auto get_type_name(const char *ptr, index_sequence<Ns...>) {
581581template <class T >
582582const char *get_type_name () {
583583#if defined(_MSC_VER) && !defined(__clang__)
584- return detail::get_type_name<T, 39 >(__FUNCSIG__, make_index_sequence<sizeof (__FUNCSIG__) - 39 - 8 >{});
584+ return detail::get_type_name<T, 65 >(__FUNCSIG__, make_index_sequence<sizeof (__FUNCSIG__) - 65 - 8 >{});
585585#elif defined(__clang__) && (__clang_major__ >= 12)
586586 return detail::get_type_name<T, 50 >(__PRETTY_FUNCTION__, make_index_sequence<sizeof (__PRETTY_FUNCTION__) - 50 - 2 >{});
587587#elif defined(__clang__)
588588 return detail::get_type_name<T, 63 >(__PRETTY_FUNCTION__, make_index_sequence<sizeof (__PRETTY_FUNCTION__) - 63 - 2 >{});
589589#elif defined(__GNUC__)
590- return detail::get_type_name<T, 68 >(__PRETTY_FUNCTION__, make_index_sequence<sizeof (__PRETTY_FUNCTION__) - 68 - 2 >{});
590+ return detail::get_type_name<T, 69 >(__PRETTY_FUNCTION__, make_index_sequence<sizeof (__PRETTY_FUNCTION__) - 69 - 2 >{});
591591#endif
592592}
593593#if defined(__cpp_nontype_template_parameter_class) || \
Original file line number Diff line number Diff line change 55// (See accompanying file LICENSE_1_0.txt or copy at
66// http://www.boost.org/LICENSE_1_0.txt)
77//
8+ #include < string>
9+
810#include " boost/sml.hpp"
911
1012BOOST_SML_NAMESPACE_BEGIN
@@ -67,5 +69,10 @@ test is_empty_type = [] {
6769 static_expect (!is_empty<non_empty>::value);
6870};
6971
72+ test type_name = [] {
73+ expect (std::string (" int" ) == get_type_name<int >());
74+ expect (std::string (" void" ) == get_type_name<void >());
75+ };
76+
7077} // namespace aux
7178BOOST_SML_NAMESPACE_END
You can’t perform that action at this time.
0 commit comments