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:
17
build-config/reflect-cpp/include/rfl/from_generic.hpp
Normal file
17
build-config/reflect-cpp/include/rfl/from_generic.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user