$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [MPL] return type
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-10-10 17:49:36
on Mon Oct 10 2011, Igor R <boost.lists-AT-gmail.com> wrote:
>> 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