feat(reflect-cpp): Switched from glaze -> reflect cpp
A bug was discovered in glaze which prevented valid toml output. We have switched to toml++ and reflect-cpp. The interface has remained the same so this should not break any code
This commit is contained in:
19
build-config/reflect-cpp/include/rfl/NoExtraFields.hpp
Normal file
19
build-config/reflect-cpp/include/rfl/NoExtraFields.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef RFL_NOEXTRAFIELDS_HPP_
|
||||
#define RFL_NOEXTRAFIELDS_HPP_
|
||||
|
||||
namespace rfl {
|
||||
|
||||
/// This is a "fake" processor - it doesn't do much in itself, but its
|
||||
/// inclusion instructs the parsers to return an error when there are extra
|
||||
/// fields instead of ignoring them.
|
||||
struct NoExtraFields {
|
||||
public:
|
||||
template <class StructType>
|
||||
static auto process(auto&& _named_tuple) {
|
||||
return _named_tuple;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace rfl
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user