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:
@@ -0,0 +1,24 @@
|
||||
#ifndef RFL_INTERNAL_TUPLE_MAKE_FROM_TUPLE_HPP_
|
||||
#define RFL_INTERNAL_TUPLE_MAKE_FROM_TUPLE_HPP_
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "../../Tuple.hpp"
|
||||
|
||||
namespace rfl::internal::tuple {
|
||||
|
||||
template <class T, class... Types, int... _is>
|
||||
T make_from_tuple(const rfl::Tuple<Types...>& _t1,
|
||||
std::integer_sequence<int, _is...>) {
|
||||
return T{rfl::get<_is>(_t1)...};
|
||||
}
|
||||
|
||||
template <class T, class... Types, int... _is>
|
||||
T make_from_tuple(rfl::Tuple<Types...>&& _t1,
|
||||
std::integer_sequence<int, _is...>) {
|
||||
return T{std::move(rfl::get<_is>(_t1))...};
|
||||
}
|
||||
|
||||
} // namespace rfl::internal::tuple
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user