Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78027 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2012-04-16 15:17:04


Author: jewillco
Date: 2012-04-16 15:17:04 EDT (Mon, 16 Apr 2012)
New Revision: 78027
URL: http://svn.boost.org/trac/boost/changeset/78027

Log:
Changed to old-style named parameter wrapper generator
Text files modified:
   trunk/boost/graph/breadth_first_search.hpp | 20 +-------------------
   trunk/boost/graph/depth_first_search.hpp | 19 +------------------
   2 files changed, 2 insertions(+), 37 deletions(-)

Modified: trunk/boost/graph/breadth_first_search.hpp
==============================================================================
--- trunk/boost/graph/breadth_first_search.hpp (original)
+++ trunk/boost/graph/breadth_first_search.hpp 2012-04-16 15:17:04 EDT (Mon, 16 Apr 2012)
@@ -395,25 +395,7 @@
 
 #if 0
   // Named Parameter Variant
- template <class VertexListGraph, class P, class T, class R>
- void
- breadth_first_search(const VertexListGraph& g,
- typename graph_traits<VertexListGraph>::vertex_descriptor s,
- const bgl_named_params<P, T, R>& params)
- {
- typedef bgl_named_params<P, T, R> params_type;
- BOOST_GRAPH_DECLARE_CONVERTED_PARAMETERS(params_type, params)
- boost::graph::breadth_first_search_with_named_params(g, s, arg_pack);
- }
-
- template <class VertexListGraph, class P, class T, class R>
- void
- breadth_first_search(const VertexListGraph& g,
- typename graph_traits<VertexListGraph>::vertex_descriptor s)
- {
- BOOST_GRAPH_DECLARE_CONVERTED_PARAMETERS(no_named_parameters, no_named_parameters())
- boost::graph::breadth_first_search_with_named_params(g, s, arg_pack);
- }
+ BOOST_GRAPH_MAKE_OLD_STYLE_PARAMETER_FUNCTION(breadth_first_search, 2)
 #endif
 
 } // namespace boost

Modified: trunk/boost/graph/depth_first_search.hpp
==============================================================================
--- trunk/boost/graph/depth_first_search.hpp (original)
+++ trunk/boost/graph/depth_first_search.hpp 2012-04-16 15:17:04 EDT (Mon, 16 Apr 2012)
@@ -302,24 +302,7 @@
     BOOST_GRAPH_MAKE_FORWARDING_FUNCTION(depth_first_search, 1, 4)
   }
 
- // Named Parameter Variant
- template <class VertexListGraph, class P, class T, class R>
- void
- depth_first_search(const VertexListGraph& g,
- const bgl_named_params<P, T, R>& params)
- {
- typedef bgl_named_params<P, T, R> params_type;
- BOOST_GRAPH_DECLARE_CONVERTED_PARAMETERS(params_type, params)
- boost::graph::depth_first_search_with_named_params(g, arg_pack);
- }
-
- template <class VertexListGraph>
- void
- depth_first_search(const VertexListGraph& g)
- {
- BOOST_GRAPH_DECLARE_CONVERTED_PARAMETERS(no_named_parameters, no_named_parameters())
- boost::graph::depth_first_search_with_named_params(g, arg_pack);
- }
+ BOOST_GRAPH_MAKE_OLD_STYLE_PARAMETER_FUNCTION(depth_first_search, 1)
 
   template <class IncidenceGraph, class DFSVisitor, class ColorMap>
   void depth_first_visit


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk