Boost logo

Boost Users :

From: Matt Hurd (matt.hurd_at_[hidden])
Date: 2005-01-05 01:06:52


Hi Trent,

<snipped code>

> Four copies - I had hoped to only see a single copy. Logically, there
> doesn't seem to be a need for more than one copy. Is there an
> implementation issue that requires this many copies?

Short answer, no. It could be less.
 
> I was hoping to use bind with some moderately weighted objects, however
> the number of copies that seem to occur may be prohibitive for me. (I
> realise that dynamically allocating objects and passing around pointers
> is an alternative but I'd rather avoid that if possible.)

Will
    boost::bind( foo, boost::ref(c));
cook your goose?
 
Regards,

Matt.
matthurd_at_[hidden]


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