Boost logo

Boost :

Subject: Re: [boost] RFC: type erasure
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-05-23 17:57:18


On 23/05/2011 00:18, Steven Watanabe wrote:

> Over the last few months I've re-done my
> type erasure library from scratch, fixing
> a lot of the bad design decisions I made
> originally. Here's a basic sample of what
> you can do with it:
>
> simulate boost::any:
>
> type_erasure::any<
> mpl::vector<copy_constructible<>, typeid_<> > >
> x(10);
>
> simulate boost::function<void(int)>:
>
> type_erasure::any<
> mpl::vector<copy_constructible<>, typeid_<>, callable<void(int)> > >
> f(foo);
>
> The code is available from the Vault:
> http://tinyurl.com/3z9jcwp
>
> The library is nearly complete. I've included
> pre-built html documentation in the zip. Questions,
> comments, and criticism are welcome.

How does it compare to Adobe.Poly?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk