Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2005-01-26 13:37:41


S?rgio Pace wrote:
> Hi,
> I was playing with the any.hpp library trying to add a generic
> inserter to an ostrem. To acomplish that I created a pure virtual
> method print in the placeholder:
> class placeholder {
> ...
> virtual void print(std::ostream& out) const = 0;
> ...
> }
> [...]

Have you look at dynamic_any?
http://www.cuj.com/documents/s=8470/cujweb0309nasonov/

Unfortunately, it not yet "under review for inclusion with Boost"
because I want to have multimethods there. I hope to get them in
dynamic_any soon.

-- 
Alexander Nasonov

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