Skip to content

Commit 8e1b86e

Browse files
author
yurial
committed
Detect default implementation of THashHelper
4ef7a7a8f6c8008dc1203097922562c21bf12bfb
1 parent 9f42e45 commit 8e1b86e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/str_stl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ namespace std {
3737
namespace NHashPrivate {
3838
template <class T, bool needNumericHashing>
3939
struct THashHelper {
40+
using is_default_implementation = std::true_type;
41+
4042
inline size_t operator()(const T& t) const noexcept {
4143
return (size_t)t; // If you have a compilation error here, look at explanation below:
4244
// Probably error is caused by undefined template specialization of THash<T>

0 commit comments

Comments
 (0)