1
0
forked from boostorg/core

Add tn_holder specializations for __int128 (avoids macOS link errors for missing typeinfo for same)

This commit is contained in:
Peter Dimov
2022-05-30 04:03:18 +03:00
parent f941d2e1f7
commit b6c3190468

View File

@ -305,6 +305,26 @@ template<> struct tn_holder<boost::ulong_long_type>
}
};
#if defined(BOOST_HAS_INT128)
template<> struct tn_holder<boost::int128_type>
{
static std::string type_name( std::string const& suffix )
{
return "__int128" + suffix;
}
};
template<> struct tn_holder<boost::uint128_type>
{
static std::string type_name( std::string const& suffix )
{
return "unsigned __int128" + suffix;
}
};
#endif
template<> struct tn_holder<wchar_t>
{
static std::string type_name( std::string const& suffix )