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
18 lines
322 B
C++
18 lines
322 B
C++
#ifndef RFL_FROM_GENERIC_HPP_
|
|
#define RFL_FROM_GENERIC_HPP_
|
|
|
|
#include "Generic.hpp"
|
|
#include "generic/read.hpp"
|
|
|
|
namespace rfl {
|
|
|
|
/// Generates the struct T from a named tuple.
|
|
template <class T, class... Ps>
|
|
auto from_generic(const Generic& _g) {
|
|
return rfl::generic::read<T, Ps...>(_g);
|
|
}
|
|
|
|
} // namespace rfl
|
|
|
|
#endif
|