I forgot to add hash class to int24... Sorry!

This commit is contained in:
Vladyslav Baranovskyi
2024-11-10 18:38:01 +02:00
parent 628cc8bed4
commit 180e479365

View File

@@ -118,11 +118,23 @@ namespace OpenVulkano
{
return operator int() <=> static_cast<int>(other);
}
template<typename Key> friend
struct std::hash;
};
}
namespace std
{
template<>
struct hash<OpenVulkano::int24>
{
std::size_t operator()(const OpenVulkano::int24& value) const
{
return hash<int>()(static_cast<int>(value));
}
};
template <>
class numeric_limits<OpenVulkano::int24>
{