Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2024-12-07 16:24:47


Oops, forgot to include the kind().

> The correct way to write the tag_invoke overload today is
>
> namespace boost
> {
> namespace json
> {
>
> template<class Hash, class Flavor, class V> std::enable_if_t< std::is_same<V,
> boost::json::value>::value > tag_invoke( boost::hash2::hash_append_tag
> const&,
> Hash& h, Flavor const& f, V const& v ) {

    boost::hash2::hash_append( h, f, v.kind() );

> boost::json::visit( [&](auto const& w){
> boost::hash2::hash_append( h, f, w ); }, v ); }
>
> } // namespace json
> } // namespace boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk