
Jason Dictos wrote:
Hi,
I'm looking for a way to implement a project using some copy-on-write feature, similar to how STL strings use reference counters to prevent needles copying of data. Is there anything in boost to help me out with this?
-Jason
---------------------------------- Check out the Barracuda Spam & Virus Firewall - offering the fastest virus & malware protection in the industry: www.barracudanetworks.com/spam
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Check out Flyweight which was made a part of Boost in Version 1.38. As far as optimizations, Boost already have shared_ptr enhancements that are undergoing standardization where the control block is merged with the object pointed to; whether or not Flyweight takes advantage of this is a different matter. The only thing missing is the small object optimization.