mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 19:07:57 +00:00
Remaining cpp changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user