Some more adaptations

This commit is contained in:
Patrick Urbanke
2024-01-03 16:40:43 +01:00
parent 7a5b53b85d
commit e01ff0b3b1
5 changed files with 26 additions and 17 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ struct Parser<R, W, std::array<T, _size>> {
const P& _parent) noexcept {
auto arr = ParentType::add_array(_w, _size, _parent);
const auto new_parent = typename ParentType::Array{&arr};
for (auto it = _arr.begin(); it != _arr.end(); ++it) {
Parser<R, W, std::remove_cvref_t<T>>::write(_w, *it, new_parent);
for (const auto& e : _arr) {
Parser<R, W, std::remove_cvref_t<T>>::write(_w, e, new_parent);
}
_w.end_array(&arr);
}