From 777bdec2e93b0b83d24420de3a77995dca74210b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 9 Sep 2024 20:21:03 +0300 Subject: [PATCH] Update examples.adoc for JSON 1.81+ --- doc/describe/examples.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/describe/examples.adoc b/doc/describe/examples.adoc index 17d7950..1285d6e 100644 --- a/doc/describe/examples.adoc +++ b/doc/describe/examples.adoc @@ -263,6 +263,11 @@ The presence of private members is taken as an indication that a universal conversion is not suitable, so the overload is disabled in this case using `std::enable_if_t`. +NOTE: Since release 1.81.0, Boost.JSON provides its +own, built-in, support for described classes. Consequently, +when using Boost 1.81.0 or later, you don't need the below +`tag_invoke` function. + [source] ---- include::../../example/to_json.cpp[lines=5..-1] @@ -282,6 +287,11 @@ Like the previous example, but in the other direction. Defines a `tag_invoke` overload that converts a `boost::json::value` to an annotated struct. +NOTE: Since release 1.81.0, Boost.JSON provides its +own, built-in, support for described classes. Consequently, +when using Boost 1.81.0 or later, you don't need the below +`tag_invoke` function. + [source] ---- include::../../example/from_json.cpp[lines=5..-1]