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
21 lines
501 B
C++
21 lines
501 B
C++
#ifndef RFL_VIEW_T_HPP_
|
|
#define RFL_VIEW_T_HPP_
|
|
|
|
#include <type_traits>
|
|
|
|
#include "Processors.hpp"
|
|
#include "internal/ptr_named_tuple_t.hpp"
|
|
|
|
namespace rfl {
|
|
|
|
/// Generates the named tuple that would be the result of to_view
|
|
template <class T, class... Ps>
|
|
using view_t =
|
|
std::invoke_result_t<decltype(Processors<Ps...>::template process<
|
|
T, internal::ptr_named_tuple_t<T>>),
|
|
internal::ptr_named_tuple_t<T>>;
|
|
|
|
} // namespace rfl
|
|
|
|
#endif
|