mirror of
https://github.com/boostorg/optional.git
synced 2025-07-29 03:57:20 +02:00
fix hash spec for C++17
This commit is contained in:
@ -24,7 +24,7 @@ namespace std
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct hash<boost::optional<T> >
|
struct hash<boost::optional<T> >
|
||||||
{
|
{
|
||||||
typedef typename hash<T>::result_type result_type;
|
typedef std::size_t result_type;
|
||||||
typedef boost::optional<T> argument_type;
|
typedef boost::optional<T> argument_type;
|
||||||
|
|
||||||
BOOST_CONSTEXPR result_type operator()(const argument_type& arg) const {
|
BOOST_CONSTEXPR result_type operator()(const argument_type& arg) const {
|
||||||
@ -35,7 +35,7 @@ namespace std
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct hash<boost::optional<T&> >
|
struct hash<boost::optional<T&> >
|
||||||
{
|
{
|
||||||
typedef typename hash<T>::result_type result_type;
|
typedef std::size_t result_type;
|
||||||
typedef boost::optional<T&> argument_type;
|
typedef boost::optional<T&> argument_type;
|
||||||
|
|
||||||
BOOST_CONSTEXPR result_type operator()(const argument_type& arg) const {
|
BOOST_CONSTEXPR result_type operator()(const argument_type& arg) const {
|
||||||
|
Reference in New Issue
Block a user