Discussion:
What is this good for ?
(too old to reply)
Bonita Montero
2024-08-13 13:12:55 UTC
Permalink
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;
}
Bonita Montero
2024-08-13 13:26:51 UTC
Permalink
... which I just noticed that it is also supported by recent VC++ ...
Rejoiced too soon: I accidentally switched to clang-cl in the project
settings.

Loading...