diff options
Diffstat (limited to 'src/string.hh')
| -rw-r--r-- | src/string.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.hh b/src/string.hh index bb026869..98d78ff6 100644 --- a/src/string.hh +++ b/src/string.hh @@ -256,8 +256,8 @@ private: static_assert(std::is_trivial<StringView>::value, ""); -template<> struct HashCompatible<String, StringView> : std::true_type {}; -template<> struct HashCompatible<StringView, String> : std::true_type {}; +template<> constexpr bool HashCompatible<String, StringView> = true; +template<> constexpr bool HashCompatible<StringView, String> = true; inline String::String(StringView str) : String{str.begin(), str.length()} {} |
