From b6c31904685e08fb7d9524f8cae961c0bd04cf31 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 30 May 2022 04:03:18 +0300 Subject: [PATCH] Add tn_holder specializations for __int128 (avoids macOS link errors for missing typeinfo for same) --- include/boost/core/type_name.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/boost/core/type_name.hpp b/include/boost/core/type_name.hpp index 4afef1d..53c0224 100644 --- a/include/boost/core/type_name.hpp +++ b/include/boost/core/type_name.hpp @@ -305,6 +305,26 @@ template<> struct tn_holder } }; +#if defined(BOOST_HAS_INT128) + +template<> struct tn_holder +{ + static std::string type_name( std::string const& suffix ) + { + return "__int128" + suffix; + } +}; + +template<> struct tn_holder +{ + static std::string type_name( std::string const& suffix ) + { + return "unsigned __int128" + suffix; + } +}; + +#endif + template<> struct tn_holder { static std::string type_name( std::string const& suffix )