
19 Mar
2008
19 Mar
'08
11:20 p.m.
Sergei Politov wrote:
As far as I understand it is possible to use in boost::any techniques similar to boost::function. I.e. split virtual behavior and actual data. It will help to avoid heap allocation while copying boost::any with stored small objects.
What do you think about adding it to next releases of boost?
Personally, I wonder if it wouldn't be more interesting to create an unified allocator system that allows Small Buffer Optimization, rather than rewriting the wheel for every component that may need it.