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:
30
build-config/reflect-cpp/include/rfl/make_named_tuple.hpp
Normal file
30
build-config/reflect-cpp/include/rfl/make_named_tuple.hpp
Normal 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_
|
||||
Reference in New Issue
Block a user