diff options
Diffstat (limited to 'include/cru/platform')
-rw-r--r-- | include/cru/platform/Color.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/cru/platform/Color.hpp b/include/cru/platform/Color.hpp index f60ab692..94c6c485 100644 --- a/include/cru/platform/Color.hpp +++ b/include/cru/platform/Color.hpp @@ -1,10 +1,9 @@ #pragma once +#include "cru/common/Base.hpp" #include "cru/platform/Base.hpp" #include "cru/common/String.hpp" -#include <boost/functional/hash.hpp> - #include <cstdint> #include <optional> #include <string_view> @@ -243,10 +242,10 @@ template <> struct std::hash<cru::platform::Color> { std::size_t operator()(const cru::platform::Color& color) const { std::size_t seed = 0; - boost::hash_combine(seed, color.red); - boost::hash_combine(seed, color.green); - boost::hash_combine(seed, color.blue); - boost::hash_combine(seed, color.alpha); + cru::hash_combine(seed, color.red); + cru::hash_combine(seed, color.green); + cru::hash_combine(seed, color.blue); + cru::hash_combine(seed, color.alpha); return seed; } }; |