diff --git a/include/boost/graph/detail/adjacency_list.hpp b/include/boost/graph/detail/adjacency_list.hpp index 181ed5c1..52eb4a86 100644 --- a/include/boost/graph/detail/adjacency_list.hpp +++ b/include/boost/graph/detail/adjacency_list.hpp @@ -2053,6 +2053,9 @@ namespace boost { StoredVertex* sv = (StoredVertex*)v; return get_property_value(sv->m_property, Tag()); } + inline Reference operator()(key_type v) const { + return this->operator[](v); + } }; template @@ -2070,6 +2073,9 @@ namespace boost { StoredVertex* sv = (StoredVertex*)v; return sv->m_property; } + inline PropRef operator()(key_type v) const { + return this->operator[](v); + } }; template operator[](v); + } GraphRef m_g; }; @@ -2105,6 +2114,9 @@ namespace boost { inline PropertyRef operator[](key_type v) const { return m_g.m_vertices[v].m_property; } + inline PropertyRef operator()(key_type v) const { + return this->operator[](v); + } GraphRef m_g; }; @@ -2144,6 +2156,7 @@ namespace boost { template inline vec_adj_list_vertex_id_map(const Graph&) { } inline value_type operator[](key_type v) const { return v; } + inline value_type operator()(key_type v) const { return v; } }; struct vec_adj_list_any_vertex_pa { @@ -2235,6 +2248,9 @@ namespace boost { Property& p = *(Property*)e.get_property(); return get_property_value(p, Tag()); } + inline Ref operator()(key_type e) const { + return this->operator[](e); + } }; template operator[](e); + } }; // Edge Property Maps