From b58f72315cbf7ee8921659dd129fd2f6a221bcfc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 14 Aug 2017 11:54:38 +0700 Subject: Change HashCompatible trait to a variable template --- src/string.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string.hh') 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::value, ""); -template<> struct HashCompatible : std::true_type {}; -template<> struct HashCompatible : std::true_type {}; +template<> constexpr bool HashCompatible = true; +template<> constexpr bool HashCompatible = true; inline String::String(StringView str) : String{str.begin(), str.length()} {} -- cgit v1.2.3