diff --git a/include/boost/graph/maximum_adjacency_search.hpp b/include/boost/graph/maximum_adjacency_search.hpp index a87c90de..58dc8695 100644 --- a/include/boost/graph/maximum_adjacency_search.hpp +++ b/include/boost/graph/maximum_adjacency_search.hpp @@ -304,7 +304,7 @@ maximum_adjacency_search(const Graph& g, WeightMap weights, MASVisitor vis, cons template void - operator() (const Graph& g, const ArgPack arg_pack) const { + operator() (const Graph& g, const ArgPack& arg_pack) const { // call the function that does the dispatching typedef typename get_param_type::type W; graph::detail::mas_dispatch::apply(g, arg_pack, get_param(arg_pack, edge_weight));