From 85ebe0a2ed35e84d026a1f4be4e925085a1a90a7 Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Sun, 19 Jun 2022 23:57:15 +0200 Subject: [PATCH] fix hash spec for C++17 --- include/boost/optional/detail/optional_hash.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/optional/detail/optional_hash.hpp b/include/boost/optional/detail/optional_hash.hpp index fad5ce0..234ee7b 100644 --- a/include/boost/optional/detail/optional_hash.hpp +++ b/include/boost/optional/detail/optional_hash.hpp @@ -24,7 +24,7 @@ namespace std template struct hash > { - typedef typename hash::result_type result_type; + typedef std::size_t result_type; typedef boost::optional argument_type; BOOST_CONSTEXPR result_type operator()(const argument_type& arg) const { @@ -35,7 +35,7 @@ namespace std template struct hash > { - typedef typename hash::result_type result_type; + typedef std::size_t result_type; typedef boost::optional argument_type; BOOST_CONSTEXPR result_type operator()(const argument_type& arg) const {