Skip to content

Commit

Permalink
Merge pull request #381 from tbleher/visit-is-not-pure
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm authored Jun 30, 2023
2 parents 81b2685 + f132b6c commit d1971b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/c4/yml/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ struct RoNodeMethods

/** visit every child node calling fn(node) */
template<class Visitor>
C4_ALWAYS_INLINE C4_PURE bool visit(Visitor fn, size_t indentation_level=0, bool skip_root=true) const noexcept
C4_ALWAYS_INLINE bool visit(Visitor fn, size_t indentation_level=0, bool skip_root=true) const noexcept
{
return detail::_visit(*(ConstImpl const*)this, fn, indentation_level, skip_root);
}
Expand All @@ -517,7 +517,7 @@ struct RoNodeMethods

/** visit every child node calling fn(node, level) */
template<class Visitor>
C4_ALWAYS_INLINE C4_PURE bool visit_stacked(Visitor fn, size_t indentation_level=0, bool skip_root=true) const noexcept
C4_ALWAYS_INLINE bool visit_stacked(Visitor fn, size_t indentation_level=0, bool skip_root=true) const noexcept
{
return detail::_visit_stacked(*(ConstImpl const*)this, fn, indentation_level, skip_root);
}
Expand Down

0 comments on commit d1971b6

Please sign in to comment.