Bonita Montero
2024-08-13 13:12:55 UTC
I had some concept'ed code that requires a parameter to be a
std::integral (concept aliasing to is_integral_v<T>). I wanted to apply
an __int128 to it but it didn't work. So I had to specialize is_integral
and is_integral_v to an __int128 (which I just noticed that it is also
supported by recent VC++).
namespace std
{
template<>
struct is_integral<__int128> : std::true_type
{
};
template<>
constexpr bool is_integral_v<__int128> = is_integral<__int128>::value;
}
std::integral (concept aliasing to is_integral_v<T>). I wanted to apply
an __int128 to it but it didn't work. So I had to specialize is_integral
and is_integral_v to an __int128 (which I just noticed that it is also
supported by recent VC++).
namespace std
{
template<>
struct is_integral<__int128> : std::true_type
{
};
template<>
constexpr bool is_integral_v<__int128> = is_integral<__int128>::value;
}