mirror of
https://github.com/biojppm/rapidyaml.git
synced 2026-01-18 21:41:18 +01:00
NodeRef: fix bug in cend()
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
### Changes
|
||||
|
||||
- [PR#563](https://github.com/biojppm/rapidyaml/pull/563) (fixes [#562](https://github.com/biojppm/rapidyaml/issues/562)) - Fix bug in `NodeRef::cend()`
|
||||
- [PR#547](https://github.com/biojppm/rapidyaml/pull/547) - Fix parsing of implicit first documents with empty sequences, caused by a problem in `Tree::set_root_as_stream()`:
|
||||
```yaml
|
||||
[] # this container was lost during parsing
|
||||
|
||||
@@ -757,7 +757,7 @@ public:
|
||||
/** get an iterator to after the last child */
|
||||
C4_ALWAYS_INLINE const_iterator end() const RYML_NOEXCEPT { _C4RR(); return const_iterator(tree_, NONE); }
|
||||
/** get an iterator to after the last child */
|
||||
C4_ALWAYS_INLINE const_iterator cend() const RYML_NOEXCEPT { _C4RR(); return const_iterator(tree_, tree_->first_child(id_)); }
|
||||
C4_ALWAYS_INLINE const_iterator cend() const RYML_NOEXCEPT { _C4RR(); return const_iterator(tree_, NONE); }
|
||||
|
||||
/** get an iterable view over children */
|
||||
template<class U=Impl>
|
||||
|
||||
Reference in New Issue
Block a user