
5 Nov
2007
5 Nov
'07
7:59 p.m.
Steven Watanabe wrote:
After 6+ months I've finally gotten back to this. I'd like to get some feedback on my ideas before I continue. The current version is in the vault.
The basic interface is derived from Alexander Nasonov's dynamic_any
struct increment : concept_<increment, void(_&)> { template<class T> static void execute(T& t) { ++t; } }
any<increment> x(1); increment()(x); assert(type_erasure::any_cast<int>(x) == 1);
Doesn't adobe::poly provide similar things but with way nicer interfaces?