summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-10-17 22:45:17 +0800
committerMaxime Coste <mawww@kakoune.org>2017-10-20 12:21:22 +0800
commitd486ea84e57bdabec07fe38a0bb4fb5bdf21848f (patch)
tree619966c9d6f0a58b329f646be6926b45b72e5fb1 /src/string.hh
parentddff35e5ab6a9bed29c49547eaee91637854f029 (diff)
Constexprify various hash functions
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh2
1 files changed, 1 insertions, 1 deletions
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());
}