1 2 3 4 5 6 7 8 | #include <functional> int main (int argc, char *argv[]) { std::hash<const int> h; h(10); } |
I2luY2x1ZGUgPGZ1bmN0aW9uYWw+CgppbnQgbWFpbiAoaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewoJc3RkOjpoYXNoPGNvbnN0IGludD4gaDsKCWgoMTApOwp9Cg==
/home/lOLq64/cctG3bP4.o: In function `main': prog.cpp:(.text+0x19): undefined reference to `std::hash<int const>::operator()(int) const' collect2: ld returned 1 exit status
-
result: Compilation error (maybe you wish to see an example for C++11)


