diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-05-25 13:51:17 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-05-25 13:51:17 +0100 |
| commit | b42de850314e7d76f873ddc7d64c5f7d2a30eb00 (patch) | |
| tree | 8968f1fed86a5e8fc7df2796450d028a722a17d0 /src/hash.hh | |
| parent | 41319d2708bb311b2bd0b82ec310ae985f9b5861 (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 3fc8abd2..232baea5 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> |
