Boost logo

Boost :

Subject: [boost] RFC: type erasure
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-05-22 18:18:43


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:

  mpl::vector<copy_constructible<>, typeid_<> > >

simulate boost::function<void(int)>:

   mpl::vector<copy_constructible<>, typeid_<>, callable<void(int)> > >

The code is available from the Vault:

The library is nearly complete. I've included
pre-built html documentation in the zip. Questions,
comments, and criticism are welcome.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at