A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, BSON, CBOR, flexbuffers, msgpack, TOML, UBJSON, XML, YAML / msgpack.org[C++20]
Structures containing bitfields give the compile errors below, packing seems to make no difference (was not expecting it to make any difference anyway)
...include\rfl\internal\bind_to_tuple.hpp(73,1): error C2664: 'std::tuple<uint8_t &,uint8_t &,uint8_t &,uint8_t &,uint64_t &> std::tie<uint8_t,uint8_t,uint8_t,uint8_t,uint64_t>(uint8_t &,uint8_t &,uint8_t &,uint8_t &,uint64_t &) noexcept': cannot convert argument 1 from 'uint8_t' to 'uint8_t &'
...include\rfl\internal\no_duplicate_field_names.hpp(24,19): error C2338: static_assert failed: 'Duplicate field names are not allowed in either named tuples or Literals.'
Expected Behavior
No compilation error
Current Behavior
Structures containing bitfields give the compile errors below, packing seems to make no difference (was not expecting it to make any difference anyway)
How to Reproduce
main.cpp
Context (Environment)
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.10.1 /std:c++20 Windows 11