I forgot to add hash class to int24... Sorry!
This commit is contained in:
@@ -118,11 +118,23 @@ namespace OpenVulkano
|
|||||||
{
|
{
|
||||||
return operator int() <=> static_cast<int>(other);
|
return operator int() <=> static_cast<int>(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename Key> friend
|
||||||
|
struct std::hash;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
template<>
|
||||||
|
struct hash<OpenVulkano::int24>
|
||||||
|
{
|
||||||
|
std::size_t operator()(const OpenVulkano::int24& value) const
|
||||||
|
{
|
||||||
|
return hash<int>()(static_cast<int>(value));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
class numeric_limits<OpenVulkano::int24>
|
class numeric_limits<OpenVulkano::int24>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user