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:
18
build-config/reflect-cpp/include/rfl/field_names_t.hpp
Normal file
18
build-config/reflect-cpp/include/rfl/field_names_t.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef RFL_FIELD_NAMES_T_HPP_
|
||||
#define RFL_FIELD_NAMES_T_HPP_
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
|
||||
#include "internal/get_field_names.hpp"
|
||||
|
||||
namespace rfl {
|
||||
|
||||
/// Returns a rfl::Literal containing the field names of struct T.
|
||||
template <class T>
|
||||
using field_names_t = typename std::invoke_result<
|
||||
decltype(internal::get_field_names<std::remove_cvref_t<T>>)>::type;
|
||||
|
||||
} // namespace rfl
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user