Boost logo

Boost :

From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2000-09-03 14:31:19


Now for your next trick, can you make this work?

struct Base { virtual ~Base() {} };
struct Derived : Base {};

Derived d;
boost::any a(&d);
Base *pb = boost::any_cast<Base*>(a);

Mark


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