From d486ea84e57bdabec07fe38a0bb4fb5bdf21848f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 17 Oct 2017 22:45:17 +0800 Subject: Constexprify various hash functions --- src/string.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string.hh') diff --git a/src/string.hh b/src/string.hh index a4d62804..ddb5be8d 100644 --- a/src/string.hh +++ b/src/string.hh @@ -19,7 +19,7 @@ class StringOps public: using value_type = CharType; - friend inline size_t hash_value(const Type& str) + friend constexpr size_t hash_value(const Type& str) { return hash_data(str.data(), (int)str.length()); } -- cgit v1.2.3