diff --git a/openVulkanoCpp/Math/Int24.hpp b/openVulkanoCpp/Math/Int24.hpp index a73c458..dc07c13 100644 --- a/openVulkanoCpp/Math/Int24.hpp +++ b/openVulkanoCpp/Math/Int24.hpp @@ -118,11 +118,23 @@ namespace OpenVulkano { return operator int() <=> static_cast(other); } + + template friend + struct std::hash; }; } namespace std { + template<> + struct hash + { + std::size_t operator()(const OpenVulkano::int24& value) const + { + return hash()(static_cast(value)); + } + }; + template <> class numeric_limits {