Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Having a cost function as weight map
From: Maxime van Noppen (maxime_at_[hidden])
Date: 2009-12-18 12:58:43

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.

> 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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at