From 38b79171120c7fd93f6b2ea89c8a6cd94ca6d1f7 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 9 Nov 2023 11:25:47 -1000 Subject: [PATCH] Fix implementation of experimental type_name --- include/boost/hana/experimental/type_name.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/hana/experimental/type_name.hpp b/include/boost/hana/experimental/type_name.hpp index 49a30e536..e8b251db9 100644 --- a/include/boost/hana/experimental/type_name.hpp +++ b/include/boost/hana/experimental/type_name.hpp @@ -31,7 +31,7 @@ namespace boost { namespace hana { namespace experimental { #if defined(__clang__) constexpr char const* pretty_function = __PRETTY_FUNCTION__; constexpr std::size_t total_size = sizeof(__PRETTY_FUNCTION__) - 1; - constexpr std::size_t prefix_size = sizeof("boost::hana::experimental::detail::cstring boost::hana::experimental::detail::type_name_impl2() [T = ") - 1; + constexpr std::size_t prefix_size = sizeof("cstring boost::hana::experimental::detail::type_name_impl2() [T = ") - 1; constexpr std::size_t suffix_size = sizeof("]") - 1; #else #error "No support for this compiler."