From 8ab119135c74c6df95470b801438318f5cdd9b57 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Oct 2021 15:46:22 +0300 Subject: [PATCH] Add overload for char8_t because Mac has no `typeinfo for char8_t` --- include/boost/core/type_name.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/core/type_name.hpp b/include/boost/core/type_name.hpp index 0c622e5..d8ea942 100644 --- a/include/boost/core/type_name.hpp +++ b/include/boost/core/type_name.hpp @@ -288,6 +288,15 @@ inline std::string type_name( tn_identity, std::string const #endif +#if defined(__cpp_char8_t) && __cpp_char8_t >= 201811L + +inline std::string type_name( tn_identity, std::string const& suffix ) +{ + return "char8_t" + suffix; +} + +#endif + // cv #if !defined(BOOST_MSVC) || BOOST_MSVC >= 1900