I'm using GCC's 128 bit integer:
__extension__ using uint128_t = unsigned __int128;
uint128_t a = 545;
std::cout << a << std::endl;
However, if I try to output using the stream operator I get the compiler error:
error: ambiguous overload for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘uint128_t’ {aka ‘__int128 unsigned’})
Is there a way to allow this?
Linux, GCC version 11.1, x86-64