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:
22
build-config/reflect-cpp/include/rfl/generic/read.hpp
Normal file
22
build-config/reflect-cpp/include/rfl/generic/read.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef GENERIC_READ_HPP_
|
||||
#define GENERIC_READ_HPP_
|
||||
|
||||
|
||||
#include "../Generic.hpp"
|
||||
#include "../Processors.hpp"
|
||||
#include "Parser.hpp"
|
||||
|
||||
namespace rfl {
|
||||
namespace generic {
|
||||
|
||||
/// Parses an object from a generic type.
|
||||
template <class T, class... Ps>
|
||||
auto read(const Generic& _g) {
|
||||
const auto r = Reader();
|
||||
return Parser<T, Processors<Ps...>>::read(r, _g);
|
||||
}
|
||||
|
||||
} // namespace generic
|
||||
} // namespace rfl
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user