summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-08-14 11:54:38 +0700
committerMaxime Coste <mawww@kakoune.org>2017-08-14 11:54:38 +0700
commitb58f72315cbf7ee8921659dd129fd2f6a221bcfc (patch)
treed2c54fff8e89040dab71558ebfc8d7b5812c1ddb /src/string.hh
parent9329fc99d26fd567ffc13aaaab83237ebec9a8ba (diff)
Change HashCompatible trait to a variable template
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh4
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()} {}