summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/core/is_same.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-02 06:14:31 -0500
committerGitHub <noreply@github.com>2025-12-02 06:14:31 -0500
commit92d95762c9cf75d9493ec75042c9415b382f10b0 (patch)
treedfcbd5b3fb9303e40b32db34cc857243df86ffc9 /include/ocl/core/is_same.hpp
parenta28d3e2e4e99793cf91f919d9341f5e07aa998e1 (diff)
parentbea0e3e713751e5c2a4d2d4343d8215333eef03e (diff)
Merge pull request #37 from amlel-el-mahrouss/developv1
chore: module source code tweaks and improvements.
Diffstat (limited to 'include/ocl/core/is_same.hpp')
-rw-r--r--include/ocl/core/is_same.hpp8
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();
}
};