From fd7ed3fbffa700503e15bd0c6c76338952fc5529 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Mon, 23 Apr 2001 04:28:22 +0000 Subject: [PATCH] pass by value for inf and zero to allow for functions [SVN r9895] --- include/boost/graph/named_function_params.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/graph/named_function_params.hpp b/include/boost/graph/named_function_params.hpp index 17a3af96..5d6e6d58 100644 --- a/include/boost/graph/named_function_params.hpp +++ b/include/boost/graph/named_function_params.hpp @@ -148,14 +148,14 @@ namespace boost { template bgl_named_params - distance_inf(const Init& init) const { + distance_inf(Init init) const { typedef bgl_named_params Params; return Params(init, *this); } template bgl_named_params - distance_zero(const Init& init) const { + distance_zero(Init init) const { typedef bgl_named_params Params; return Params(init, *this); } @@ -291,14 +291,14 @@ namespace boost { template bgl_named_params - distance_inf(const Init& init) { + distance_inf(Init init) { typedef bgl_named_params Params; return Params(init); } template bgl_named_params - distance_zero(const Init& init) { + distance_zero(Init init) { typedef bgl_named_params Params; return Params(init); }