Support for loading variables from module with require
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-08-11 12:32:18 +02:00
parent c39f3a0884
commit 641b6784c7
8 changed files with 89 additions and 28 deletions

View File

@@ -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