Skip to content

Commit

Permalink
access to property maps are const
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Apr 10, 2024
1 parent dc06506 commit 244123d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orthtree/include/CGAL/Orthtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ class Orthtree {
\return an optional containing the property map if it exists
*/
template <typename T>
std::optional<Property_map<T>> property(const std::string& name) {
std::optional<Property_map<T>> property(const std::string& name) const {
auto p = m_node_properties.template get_property_if_exists<T>(name);
if (p)
return std::optional<Property_map<T> >(Property_map<T>(*p));
Expand Down

0 comments on commit 244123d

Please sign in to comment.