summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-08-18 08:17:02 +0700
committerMaxime Coste <mawww@kakoune.org>2017-08-18 08:17:02 +0700
commit1688332d1205c57b5d18b930819f52a9c04e4c04 (patch)
tree87ce72d0e0bfd5f89a1fd3467221de1b9c240c2a /src/string.hh
parent65bac9c027828a27c0e2fd9c2f6ace00ad5b8df2 (diff)
Revert "Change HashCompatible trait to a variable template"
This reverts commit b58f72315cbf7ee8921659dd129fd2f6a221bcfc. Unfortunately gcc-5.1 handling of variable template partial specializations is bugged.
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 98d78ff6..bb026869 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -256,8 +256,8 @@ private:
static_assert(std::is_trivial<StringView>::value, "");
-template<> constexpr bool HashCompatible<String, StringView> = true;
-template<> constexpr bool HashCompatible<StringView, String> = true;
+template<> struct HashCompatible<String, StringView> : std::true_type {};
+template<> struct HashCompatible<StringView, String> : std::true_type {};
inline String::String(StringView str) : String{str.begin(), str.length()} {}