I am facing an issue hashing __uint128_t. Following is my code:
#include <iostream> int main () { __uint128_t var = 1; std::cout << std::hash<__uint128_t> () (var) << "\n"; return 0; } I am getting the error as:
test.cpp: In function ‘int main()’: test.cpp:5:40: error: use of deleted function ‘std::hash<__int128 unsigned>::hash()’ 5 | size_t h = std::hash<__uint128_t> () (var); | ^ How can I get the hash for __uint128_t? (Probably a very basic question but I have been stuck here for a while). Also, I would like to know the meaning of the error. Thanks in advance.
__uint128_tis not a standard type sostd::hashis not required to support it.