Files
libconfig/build-config/reflect-cpp/include/rfl/generic/read.hpp
Emily Boudreaux ec13264050 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
2025-12-06 10:55:46 -05:00

23 lines
408 B
C++

#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