5 Nov
2025
5 Nov
'25
12:27 a.m.
On Wed, Nov 5, 2025, at 12:13 AM, Vinnie Falco via Boost wrote:
On Tue, Nov 4, 2025 at 2:59 PM Ion Gaztañaga <igaztanaga@gmail.com> wrote:
Interesting, but a bit convoluted for my taste ;-)
[...] in order to convert a json::value to your type T, you would write this function in the same namespace as T:
void tag_invoke( boost::json::value_to_tag, T&, boost::json::value const& );
I like this better than specializing a class template for a few reasons.
+1 I like the libraries that use this approach. It's the best way I know to truly decouple the provider and consumer of this extension mechanism. Seth