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,29 @@
#ifndef RFL_PARSING_SUPPORTSATTRIBUTES_HPP_
#define RFL_PARSING_SUPPORTSATTRIBUTES_HPP_
#include <concepts>
#include <string_view>
#include "../Result.hpp"
namespace rfl {
namespace parsing {
/// Determines whether a writer supports attributes.
template <class W>
concept supports_attributes = requires(W w, std::string_view name,
typename W::OutputObjectType obj,
bool is_attribute) {
{
w.add_value_to_object(name, name, &obj, is_attribute)
} -> std::same_as<typename W::OutputVarType>;
{
w.add_null_to_object(name, &obj, is_attribute)
} -> std::same_as<typename W::OutputVarType>;
};
} // namespace parsing
} // namespace rfl
#endif