Building error: 'result_type': is not a member of 'std::hash<int>' #7534
-
Hi. I'm trying to build libtorrent RC_2_0 on Win11 with Boost_1_83_0. The command to build is: It gives me a few errors like:
What may cause this error? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It seems, that error occurs with flag cxxstd=20 or cxxstd=17 - after switching to cxxstd=14, I was able to build the lib. despite I tried to build b2 with commands |
Beta Was this translation helpful? Give feedback.
-
The code attempts to detect C++17 and later by:
which apparently is failing on msvc. I believe msvc isn't always updating this macro to reflect the version. I think this might fix the issue: #7545 |
Beta Was this translation helpful? Give feedback.
The code attempts to detect C++17 and later by:
which apparently is failing on msvc. I believe msvc isn't always updating this macro to reflect the version.
I think this might fix the issue: #7545