
7 Dec
2024
7 Dec
'24
4:24 p.m.
Oops, forgot to include the kind().
The correct way to write the tag_invoke overload today is
namespace boost { namespace json {
template
std::enable_if_t< std::is_same ::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