`hash_value` doesn't work at all
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 176
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 1
Description
https://godbolt.org/z/q6McGYzGW
```
error: no matching function for call to 'hash_detector_msvc_helper(long int)'
55 | template using hash_detector = decltype(hash_detector_msvc_helper(1L));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/opt/compiler-explorer/libs/boost_1_83_0/boost/pfr/detail/detectors.hpp:53:29: note: candidate: 'template decltype (std::hash<_Tp>{}(declval())) boost::pfr::detail::hash_detector_msvc_helper(long int)'
53 | template auto hash_detector_msvc_helper(long) -> decltype(std::hash{}(std::declval()));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/compiler-explorer/libs/boost_1_83_0/boost/pfr/detail/detectors.hpp:53:29: note: template argument deduction/substitution failed:
/opt/compiler-explorer/libs/boost_1_83_0/boost/pfr/detail/detectors.hpp:55:98: error: wrong number of template arguments (2, should be 1)
55 | template using hash_detector = decltype(hash_detector_msvc_helper(1L));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/opt/compiler-explorer/libs/boost_1_83_0/boost/pfr/detail/detectors.hpp:53:29: note: provided for 'template decltype (std::hash<_Tp>{}(declval())) boost::pfr::detail::hash_detector_msvc_helper(long int)'
53 | template auto hash_detector_msvc_helper(long) -> decltype(std::hash{}(std::declval()));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/compiler-explorer/libs/boost_1_83_0/boost/pfr/detail/detectors.hpp:54:38: note: candidate: 'template boost::pfr::detail::can_not_apply boost::pfr::detail::hash_detector_msvc_helper(int)'
54 | template can_not_apply hash_detector_msvc_helper(int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/compiler-explorer/libs/boost_1_83_0/boost/pfr/detail/detectors.hpp:54:38: note: template argument deduction/substitution failed:
/opt/compiler-explorer/libs/boost_1_83_0/boost/pfr/detail/detectors.hpp:55:98: error: wrong number of template arguments (2, should be 1)
55 | template using hash_detector = decltype(hash_detector_msvc_helper(1L));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/opt/compiler-explorer/libs/boost_1_83_0/boost/pfr/detail/detectors.hpp:54:38: note: provided for 'template boost::pfr::detail::can_not_apply boost::pfr::detail::hash_detector_msvc_helper(int)'
54 | template can_not_apply hash_detector_msvc_helper(int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
```
BTW no issues with `boost::pfr::hash_fields`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.