|
Boost Users : |
Subject: Re: [Boost-users] Using metric_tsp_approx with bundled properties
From: Alexis Praga (alexispraga_at_[hidden])
Date: 2014-04-18 15:22:29
On Thu, Apr 17, 2014 at 10:26:31AM +0100, Albert Yiamakis wrote:
> No, the call should be
>
> metric_tsp_approx(g_init,
> weight_map(get(&Road::length, g_init)).vertex_index_map(get(&City::id,
> g_init))
> .visitor(make_tsp_tour_visitor(back_inserter(c))));
>
> However that doesn't compile either; I suspect because there is no named
> parameter overload and it tries to call
>
> metric_tsp_approx(VertexListGraph& g, TSPVertexVisitor vis)
What should I do then to call metric_tsp_approx properly then ?
Cheers,
-- Alexis Praga, PhD Student (CERFACS) GPG key : AD4A AF6D BB5C 042F 9422 1223 06E1 C1BF E287 65D0
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net