mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
Some more adaptations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user