diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-02 06:12:20 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-02 06:14:09 -0500 |
| commit | bea0e3e713751e5c2a4d2d4343d8215333eef03e (patch) | |
| tree | dfcbd5b3fb9303e40b32db34cc857243df86ffc9 /include/ocl/core/is_same.hpp | |
| parent | 365af26a0103307d3ebf9acab35799477403c879 (diff) | |
chore: module source code tweaks and improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
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(); } }; |
