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_HASREFLECTOR_HPP_
|
||||
#define RFL_INTERNAL_HASREFLECTOR_HPP_
|
||||
|
||||
namespace rfl {
|
||||
template <typename T>
|
||||
struct Reflector;
|
||||
|
||||
namespace internal {
|
||||
|
||||
template <typename Type>
|
||||
concept has_write_reflector = requires(Type&& item) {
|
||||
Reflector<Type>::from(item);
|
||||
};
|
||||
|
||||
template <typename Type>
|
||||
concept has_read_reflector =
|
||||
requires(const typename Reflector<Type>::ReflType& item) {
|
||||
Reflector<Type>::to(item);
|
||||
};
|
||||
|
||||
} // namespace internal
|
||||
} // namespace rfl
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user