summaryrefslogtreecommitdiff
path: root/boost/graph/filtered_graph.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/graph/filtered_graph.hpp')
-rw-r--r--boost/graph/filtered_graph.hpp22
1 files changed, 7 insertions, 15 deletions
diff --git a/boost/graph/filtered_graph.hpp b/boost/graph/filtered_graph.hpp
index 66cead609b..74fea46117 100644
--- a/boost/graph/filtered_graph.hpp
+++ b/boost/graph/filtered_graph.hpp
@@ -195,7 +195,6 @@ namespace boost {
typedef filtered_graph_tag graph_tag;
-#ifndef BOOST_GRAPH_NO_BUNDLED_PROPERTIES
// Bundled properties support
template<typename Descriptor>
typename graph::detail::bundled_result<Graph, Descriptor>::type&
@@ -206,11 +205,10 @@ namespace boost {
typename graph::detail::bundled_result<Graph, Descriptor>::type const&
operator[](Descriptor x) const
{ return this->m_g[x]; }
-#endif // BOOST_GRAPH_NO_BUNDLED_PROPERTIES
static vertex_descriptor null_vertex()
{
- return Graph::null_vertex();
+ return Traits::null_vertex();
}
//private:
@@ -222,26 +220,21 @@ namespace boost {
template <typename Graph,
typename EdgePredicate,
typename VertexPredicate>
- struct vertex_property_type<filtered_graph<Graph, EdgePredicate, VertexPredicate> > {
- typedef typename vertex_property_type<Graph>::type type;
- };
+ struct vertex_property_type<filtered_graph<Graph, EdgePredicate, VertexPredicate> >:
+ vertex_property_type<Graph> {};
template <typename Graph,
typename EdgePredicate,
typename VertexPredicate>
- struct edge_property_type<filtered_graph<Graph, EdgePredicate, VertexPredicate> > {
- typedef typename edge_property_type<Graph>::type type;
- };
+ struct edge_property_type<filtered_graph<Graph, EdgePredicate, VertexPredicate> >:
+ edge_property_type<Graph> {};
template <typename Graph,
typename EdgePredicate,
typename VertexPredicate>
- struct graph_property_type<filtered_graph<Graph, EdgePredicate, VertexPredicate> > {
- typedef typename graph_property_type<Graph>::type type;
- };
-
+ struct graph_property_type<filtered_graph<Graph, EdgePredicate, VertexPredicate> >:
+ graph_property_type<Graph> {};
-#ifndef BOOST_GRAPH_NO_BUNDLED_PROPERTIES
template<typename Graph, typename EdgePredicate, typename VertexPredicate>
struct vertex_bundle_type<filtered_graph<Graph, EdgePredicate,
VertexPredicate> >
@@ -256,7 +249,6 @@ namespace boost {
struct graph_bundle_type<filtered_graph<Graph, EdgePredicate,
VertexPredicate> >
: graph_bundle_type<Graph> { };
-#endif // BOOST_GRAPH_NO_BUNDLED_PROPERTIES
//===========================================================================
// Non-member functions for the Filtered Edge Graph