mirror of https://github.com/CGAL/cgal
access to property maps are const
This commit is contained in:
parent
dc06506a04
commit
244123d93e
|
|
@ -594,7 +594,7 @@ public:
|
||||||
\return an optional containing the property map if it exists
|
\return an optional containing the property map if it exists
|
||||||
*/
|
*/
|
||||||
template <typename T>
|
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);
|
auto p = m_node_properties.template get_property_if_exists<T>(name);
|
||||||
if (p)
|
if (p)
|
||||||
return std::optional<Property_map<T> >(Property_map<T>(*p));
|
return std::optional<Property_map<T> >(Property_map<T>(*p));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue