|
Boost : |
From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2003-02-18 12:00:06
On Tue, 18 Feb 2003, Alexander Nasonov wrote:
> With a help of boost::dynamic_any::call operation (not yet implemented) it's
> possible to use boost::dynamic_any::any instead of Boost.Function. Though
> this new solution is less specialized and probably slower then
> Boost.Function it has one advantage demonstrated in the example below:
>
>
> typedef boost::dynamic_any<
> boost::mpl::list<
> boost::dynamic_any::call<void (int &)>,
> boost::dynamic_any::call<void (double &)>
> >
> > flexible_function; // 2 in 1!
That's great! 'Tis a good week for dynamic polymorphism.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk