10 Oct
2011
10 Oct
'11
9:49 p.m.
on Mon Oct 10 2011, Igor R
Yeah, as long as you're doing that with a runtime test, your only option is to use some kind of type erasure (boost::any, polymorphic base class, etc).
Or Boost.Variant.
(which is what I meant by etc.) I think if you are going to use type erasure, Igor's suggestion is probably the approach most suited to a metaprogrammed system. -- Dave Abrahams BoostPro Computing http://www.boostpro.com