How to print __int128 in g++?

If you don’t need any of the fancy formatting options, writing your own << operator is trivial. Formally, I suspect that writing one for __int128_t would be considered undefined behavior, but practically, I think it would work, up until the library starts providing actual support for it (at which point, you’d retire your conversion operator). … Read more

How to enable __int128 on Visual Studio?

MSDN doesn’t list it as being available, and this recent response agrees, so officially, no, there is no type called __int128 and it can’t be enabled. Additionally, never trust the syntax hilighter; it is user editable, and thus likely to either have bogus or ‘future’ types in it. (it is probably a reserved word however, … Read more