Support for loading variables from module with require
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -63,9 +63,20 @@ namespace Porygon::Utilities{
|
||||
inline bool operator>(const HashedString& b) const{
|
||||
return _hash > b._hash;
|
||||
}
|
||||
|
||||
|
||||
std::size_t operator()(const HashedString& k) const {
|
||||
return _hash;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
namespace std {
|
||||
template <>
|
||||
struct hash<Porygon::Utilities::HashedString> {
|
||||
std::size_t operator()(const Porygon::Utilities::HashedString& k) const{
|
||||
return k.GetHash();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
#endif //PORYGONLANG_HASHEDSTRING_HPP
|
||||
|
||||
Reference in New Issue
Block a user