access to property maps are const

This commit is contained in:
Sébastien Loriot 2024-04-10 16:57:08 +02:00
parent dc06506a04
commit 244123d93e
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ public:
\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));