diff options
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 6e74f0338..cfd47a8e0 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -173,14 +173,18 @@ std::ostream& operator<<(std::ostream& os, Signature t); } // namespace wasm -template<> class std::hash<wasm::Type> { +namespace std { + +template<> class hash<wasm::Type> { public: size_t operator()(const wasm::Type& type) const; }; -template<> class std::hash<wasm::Signature> { +template<> class hash<wasm::Signature> { public: size_t operator()(const wasm::Signature& sig) const; }; +} // namespace std + #endif // wasm_wasm_type_h |