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:
2025-12-06 10:55:46 -05:00
parent 2b5abeae58
commit ec13264050
365 changed files with 63946 additions and 357 deletions

View File

@@ -0,0 +1,30 @@
#ifndef RFL_MAKENAMEDTUPLE_HPP_
#define RFL_MAKENAMEDTUPLE_HPP_
#include <type_traits>
#include "NamedTuple.hpp"
namespace rfl {
/// Convenience constructor that doesn't require you
/// to explitly define the field types.
template <class... FieldTypes>
inline auto make_named_tuple(FieldTypes&&... _args) {
return NamedTuple<std::remove_cvref_t<FieldTypes>...>(
std::forward<FieldTypes>(_args)...);
}
/// Convenience constructor that doesn't require you
/// to explitly define the field types.
template <class... FieldTypes>
inline auto make_named_tuple(const FieldTypes&... _args) {
return NamedTuple<FieldTypes...>(_args...);
}
/// Explicit overload for creating empty named tuples.
inline auto make_named_tuple() { return NamedTuple<>(); }
} // namespace rfl
#endif // RFL_MAKENAMEDTUPLE_HPP_