On Mon, Oct 10, 2011 at 11:49 PM, Dave Abrahams <dave@boostpro.com> wrote:
>> Yeah, as long as you're doing that with a runtime test, your only option(which is what I meant by etc.)
>> is to use some kind of type erasure (boost::any, polymorphic base class, etc).
>
> Or Boost.Variant.
I think if you are going to use type erasure, Igor's suggestion is
probably the approach most suited to a metaprogrammed system.