Skip to content

Commit

Permalink
Add missing const accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
nmellado committed Dec 14, 2023
1 parent b24dcdf commit 5591be5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Ponca/src/SpatialPartitioning/KdTree/kdTreeTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ class KdTreeCustomizableNode
protected:
[[nodiscard]] inline LeafType& getAsLeaf() { return data.m_leaf; }
[[nodiscard]] inline InnerType& getAsInner() { return data.m_inner; }
[[nodiscard]] inline const LeafType& getAsLeaf() const { return data.m_leaf; }
[[nodiscard]] inline const InnerType& getAsInner() const { return data.m_inner; }

private:
bool m_is_leaf{true};
Expand Down

0 comments on commit 5591be5

Please sign in to comment.