diff options
Diffstat (limited to 'include/ocl/core/is_same.hpp')
| -rw-r--r-- | include/ocl/core/is_same.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ocl/core/is_same.hpp b/include/ocl/core/is_same.hpp index fdf80d7..27a85d0 100644 --- a/include/ocl/core/is_same.hpp +++ b/include/ocl/core/is_same.hpp @@ -15,11 +15,13 @@ namespace ocl template <typename T> struct basic_hash { + using result_type = typename T::result_type; + using type = T; + /// @brief hash from T's result_type. - static typename T::result_type hash() + static result_type hash() { - static T val; - return val.hash(); + return T{}.hash(); } }; |
