Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::graph, ref vs. copy during relaxation
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-08-27 15:06:15


On Mon, 27 Aug 2012, Tristram Gräbener wrote:

(snip)
>> What are you patching in Boost? Using a shared_ptr and custom compare and
>> combine doesn't require any changes to Boost.Graph as far as I know.
>
> I believe that if the relaxation would use a reference instead of a
> copy, there would be no consequence for the library.
>
> It would allow to use the properties in a straightfoward and more
> homogenous way to use the properties (not having to use them
> differently when having small properties or large ones).
>
> However, if there is an actual reason (other than : “properties should
> be small”) to use copy instead of a const reference during the
> relaxation I'd eager to learn (I'm no C++ guru)

Please see if what's in the trunk now (r80264 or above) satisfies your
requirements.

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