It's important for class authors to be able to write the appropriate tag_invoke overload for their types without needing to include a Boost.JSON header (in order to not require Boost.JSON to be present when not used.) A minimal example is https://godbolt.org/z/jqMj4o4j4. The immediate problem is that value_from can't be forward declared because it has a default argument.
It's important for class authors to be able to write the appropriate
tag_invokeoverload for their types without needing to include a Boost.JSON header (in order to not require Boost.JSON to be present when not used.) A minimal example is https://godbolt.org/z/jqMj4o4j4. The immediate problem is thatvalue_fromcan't be forward declared because it has a default argument.