Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Having a cost function as weight map
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2009-12-18 13:02:22


On Fri, 18 Dec 2009, Maxime van Noppen wrote:

> Jeremiah Willcock wrote:
>> OK. It actually should be "typename
>> boost::result_of<Functor(Arg)>::type" like what is in the specialization
>> of property_traits.
>
> Ok fixed it.
>
>> In case your operator()() in the functor is non-const (even though I
>> said I was assuming it was const); switching to a reference is fine.
>
> And to a const reference ? My operator() is const.

That's what I meant.

>> OK. Did it work otherwise?
>
> I didn't test it on a real world test case yet but I added a std::cout
> in my functor's operator() and it is called, so I'd say yes.

OK. I just wanted to make sure there weren't any other obvious errors in
the code.

-- Jeremiah Willcock


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