From d439c3aa737e9a35de4699c2612c68d104013cae Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Mon, 15 Aug 2022 18:56:02 -0700 Subject: Stop referencing `std::hash::result_type` --- src/include/open-axiom/Lisp | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/src/include/open-axiom/Lisp b/src/include/open-axiom/Lisp index dff5c769..5b34242a 100644 --- a/src/include/open-axiom/Lisp +++ b/src/include/open-axiom/Lisp @@ -46,25 +46,22 @@ #include #include -namespace std { - template<> - struct hash { - hash::result_type - operator()(const OpenAxiom::VM::Package& s) const { - return h(s.name); - } - hash h; - }; - - template<> - struct equal_to { - using arg_type = OpenAxiom::VM::Package; - bool operator()(const arg_type& x, const arg_type& y) const { - constexpr equal_to eq { }; - return eq(x.name, y.name); - } - }; -} +template<> +struct std::hash { + auto operator()(const OpenAxiom::VM::Package& s) const { + return h(s.name); + } + hash h; +}; + +template<> +struct std::equal_to { + using arg_type = OpenAxiom::VM::Package; + bool operator()(const arg_type& x, const arg_type& y) const { + constexpr equal_to eq { }; + return eq(x.name, y.name); + } +}; namespace OpenAxiom { namespace Lisp { -- cgit v1.2.3