From 4bc62d906127860fcdf6e61cc3420fccdc0dff27 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sat, 30 May 2026 15:57:45 -0400 Subject: [PATCH] Fix for issue 64 --- include/boost/exception/detail/type_info.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/exception/detail/type_info.hpp b/include/boost/exception/detail/type_info.hpp index 766b62a..2dc4b8d 100644 --- a/include/boost/exception/detail/type_info.hpp +++ b/include/boost/exception/detail/type_info.hpp @@ -235,13 +235,13 @@ boost (void) static_assert_unrecognized_pretty_function_format_please_file_github_issue; if( std::size_t const p = sizeof(char[1 + !!s01 * (p01 + p02 + p03 + p04 + p05 + p06)]) - 1 ) - return { BOOST_EXCEPTION_PRETTY_FUNCTION + p, s01 - p }; + return { &BOOST_EXCEPTION_PRETTY_FUNCTION[p], s01 - p }; if( std::size_t const p = sizeof(char[1 + !!s02 * (p07 + p08 + p09)]) - 1 ) - return { BOOST_EXCEPTION_PRETTY_FUNCTION + p, s02 - p }; + return { &BOOST_EXCEPTION_PRETTY_FUNCTION[p], s02 - p }; std::size_t const p = sizeof(char[1 + !!s02 * p10]) - 1; - return { BOOST_EXCEPTION_PRETTY_FUNCTION + p, s02 - p }; + return { &BOOST_EXCEPTION_PRETTY_FUNCTION[p], s02 - p }; } #undef BOOST_EXCEPTION_CDECL