|
Boost : |
From: Corrado Zoccolo (czoccolo_at_[hidden])
Date: 2008-03-20 14:22:49
You can have a look at the optional polymorphic value object in the vault (
http://tinyurl.com/2og6st).
In the accompaining examples (http://tinyurl.com/2o3wrn), there is a sample
re-implementation of boost::any that benefits from the small object
optimization guaranteed by the polymorphic container.
Corrado *
*
On Wed, Mar 19, 2008 at 1:39 PM, Sergei Politov <spolitov_at_[hidden]> 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?
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
-- __________________________________________________________________________ dott. Corrado Zoccolo mailto:zoccolo_at_[hidden] PhD - Department of Computer Science - University of Pisa, Italy -------------------------------------------------------------------------- The self-confidence of a warrior is not the self-confidence of the average man. The average man seeks certainty in the eyes of the onlooker and calls that self-confidence. The warrior seeks impeccability in his own eyes and calls that humbleness. Tales of Power - C. Castaneda
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk