aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-30 15:26:16 +0800
committercrupest <crupest@outlook.com>2021-11-30 15:26:16 +0800
commitff6cb3b468a0d4caf87c2291818d24e0a6d12b39 (patch)
tree7799f31d70aae62e70bec5e9d1c54811e01164be /include/cru/platform
parent1bbd3e0c1817774335c97f4c59e0310b61949ece (diff)
downloadcru-ff6cb3b468a0d4caf87c2291818d24e0a6d12b39.tar.gz
cru-ff6cb3b468a0d4caf87c2291818d24e0a6d12b39.tar.bz2
cru-ff6cb3b468a0d4caf87c2291818d24e0a6d12b39.zip
...
Diffstat (limited to 'include/cru/platform')
-rw-r--r--include/cru/platform/Color.hpp11
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;
}
};