5 Jan
2005
5 Jan
'05
6:06 a.m.
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@acm.org