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
23 lines
408 B
C++
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
|