Redesigned the writer (#36) and added YAML support based on the new writer (#23)

This commit is contained in:
Patrick Urbanke
2024-01-03 07:22:36 +01:00
parent 0a524a9893
commit 5c81e40f09
133 changed files with 3082 additions and 838 deletions
@@ -28,9 +28,10 @@ struct Parser<R, W, std::reference_wrapper<T>> {
return Error("Unsupported.");
}
static OutputVarType write(const W& _w,
const std::reference_wrapper<T> _ref) noexcept {
return Parser<R, W, std::decay_t<T>>::write(_w, _ref.get());
template <class P>
static void write(const W& _w, const std::reference_wrapper<T> _ref,
const P& _p) noexcept {
Parser<R, W, std::decay_t<T>>::write(_w, _ref.get(), _p);
}
};