Ticket #10709: op_brackets.patch

File op_brackets.patch, 970 bytes (added by Alexey Chernov <4ernov@…>, 8 years ago)
  • subgraph.hpp.

    old new  
    277277    operator[](Descriptor x)
    278278    { return is_root() ? m_graph[x] : root().m_graph[local_to_global(x)]; }
    279279
     280    typename graph::detail::bundled_result<Graph, graph_bundle_t>::type&
     281    operator[](graph_bundle_t x)
     282    { return m_graph[x]; }
     283
    280284    template <typename Descriptor>
    281285    typename graph::detail::bundled_result<Graph, Descriptor>::type const&
    282286    operator[](Descriptor x) const
    283287    { return is_root() ? m_graph[x] : root().m_graph[local_to_global(x)]; }
    284288
     289    typename graph::detail::bundled_result<Graph, graph_bundle_t>::type const&
     290    operator[](graph_bundle_t x) const
     291    { return m_graph[x]; }
     292
    285293    // Local property access returns the local property of the given descripor.
    286294    template <typename Descriptor>
    287295    typename graph::detail::bundled_result<Graph, Descriptor>::type&