Skip to content

Adding value_from support without including a Boost.JSON header #549

@pdimov

Description

@pdimov

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions