Remaining cpp changes

This commit is contained in:
Thomas Krijnen
2026-01-10 10:20:34 +01:00
parent 7f4d9e31c3
commit 69a4ad35a1
6 changed files with 32 additions and 10 deletions
+18
View File
@@ -191,6 +191,24 @@ struct hash<express::Entity> {
} // namespace std
namespace boost {
template <>
struct hash<express::Base> {
std::size_t operator()(const express::Base& c) const noexcept {
return std::hash<uint32_t>{}(c.identity());
}
};
template <>
struct hash<express::Entity> {
std::size_t operator()(const express::Entity& c) const noexcept {
return std::hash<uint32_t>{}(c.identity());
}
};
} // namespace boost
template <typename T, typename U>
std::vector<T> cast_vector(const std::vector<U>& vs) {
std::vector<T> result;