Files
libconfig/build-config/reflect-cpp/include/rfl/from_generic.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

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