diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-03-12 15:27:54 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-07-19 08:47:14 +0200 |
| commit | 7a79cbbc811a643ef193de0790609cd7bfea61fc (patch) | |
| tree | 051748930a03aab4967ee94ebc50d5a3846f5934 /src/hash.hh | |
| parent | fbffd86f85445623a6a8981a93d8a9f763d98af7 (diff) | |
Migrate code to c++14
Diffstat (limited to 'src/hash.hh')
| -rw-r--r-- | src/hash.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.hh b/src/hash.hh index ddce1cff..a79bbf3c 100644 --- a/src/hash.hh +++ b/src/hash.hh @@ -19,10 +19,10 @@ size_t hash_value(const Type&... val) } template<typename Type> -typename std::enable_if<std::is_enum<Type>::value, size_t>::type +std::enable_if_t<std::is_enum<Type>::value, size_t> hash_value(const Type& val) { - return hash_value((typename std::underlying_type<Type>::type)val); + return hash_value((std::underlying_type_t<Type>)val); } template<typename Type> |
