A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, BSON, CBOR, flexbuffers, msgpack, TOML, XML, YAML / msgpack.org[C++20]
I made one small design deviation from @liuzicheng1987's proposal which was to implement rfl::Field::name() by way of its rfl::internal::StringLiteral name, rather than via rfl::Literal, so that it can be a compile-time constant. I think that's important, e.g. the simple test I added wouldn't be possible without it.
Adds
rfl::NamedTuple::apply()
as proposed in https://github.com/getml/reflect-cpp/issues/58.I made one small design deviation from @liuzicheng1987's proposal which was to implement
rfl::Field::name()
by way of itsrfl::internal::StringLiteral
name, rather than viarfl::Literal
, so that it can be a compile-time constant. I think that's important, e.g. the simple test I added wouldn't be possible without it.