From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-12-16 14:05:41
Joaquin M Lopez Munoz skrev:
> Thorsten Ottosen <thorsten.ottosen <at> dezide.com> writes:
>> I would use it as a lightweight and more convenient replacement for
>> boost::shared_ptr<const T>.
>> In my application I might have < 50 objects that needs to by flyweights.
>> They are almost never identical, and if they are, the memory occupied by
>> the factory would probably be much larger than that of duplication.
> Well, then you might not need using the flyweight idiom
> after all...
Well, it's lower overhead (if no factory and forwarding
constructors/operations makes it a better choice than shared_ptrconst T>.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk