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,47 @@
#ifndef RFL_PARSING_PARSER_MAP_LIKE_HPP_
#define RFL_PARSING_PARSER_MAP_LIKE_HPP_
#include <map>
#include <string>
#include <unordered_map>
#include "../ExtraFields.hpp"
#include "../Object.hpp"
#include "../Result.hpp"
#include "../always_false.hpp"
#include "MapParser.hpp"
#include "Parser_base.hpp"
namespace rfl {
namespace parsing {
template <class R, class W, class T, class ProcessorsType>
requires AreReaderAndWriter<R, W, std::map<std::string, T>>
struct Parser<R, W, std::map<std::string, T>, ProcessorsType>
: public MapParser<R, W, std::map<std::string, T>, ProcessorsType> {};
template <class R, class W, class T, class Hash, class KeyEqual,
class Allocator, class ProcessorsType>
requires AreReaderAndWriter<
R, W, std::unordered_map<std::string, T, Hash, KeyEqual, Allocator>>
struct Parser<R, W,
std::unordered_map<std::string, T, Hash, KeyEqual, Allocator>,
ProcessorsType>
: public MapParser<
R, W, std::unordered_map<std::string, T, Hash, KeyEqual, Allocator>,
ProcessorsType> {};
template <class R, class W, class T, class ProcessorsType>
requires AreReaderAndWriter<R, W, Object<T>>
struct Parser<R, W, Object<T>, ProcessorsType>
: public MapParser<R, W, Object<T>, ProcessorsType> {};
template <class R, class W, class T, class ProcessorsType>
requires AreReaderAndWriter<R, W, ExtraFields<T>>
struct Parser<R, W, ExtraFields<T>, ProcessorsType>
: public MapParser<R, W, ExtraFields<T>, ProcessorsType> {};
} // namespace parsing
} // namespace rfl
#endif