Skip to content

Commit

Permalink
Update examples.adoc for JSON 1.81+
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Sep 9, 2024
1 parent f39d321 commit 777bdec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/describe/examples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit 777bdec

Please sign in to comment.