forked from boostorg/static_string
Fix standalone
This commit is contained in:
@ -4619,8 +4619,9 @@ struct hash<
|
|||||||
#ifndef BOOST_STATIC_STRING_STANDALONE
|
#ifndef BOOST_STATIC_STRING_STANDALONE
|
||||||
return boost::hash_range(str.begin(), str.end());
|
return boost::hash_range(str.begin(), str.end());
|
||||||
#else
|
#else
|
||||||
using sv = boost::static_string::basic_string_view<typename Traits::value_type, Traits>;
|
using view_type = typename boost::static_string::
|
||||||
return std::hash<sv>()(sv(str.data(), str.size()));
|
basic_static_string<N, CharT, Traits>::string_view_type;
|
||||||
|
return std::hash<view_type>()(view_type(str.data(), str.size()));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user