Hmm,
so if_ itself, with no arguments? That’s a good idea. I’ll try that.
That
might be exactly what I was looking for, if it doesn’t choke the compiler.
Many thanks.
--John
From:
boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] On Behalf Of Roman
Perepelitsa
Sent: Tuesday, May 25, 2010 11:08 AM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [MPL] what is my base class?
2010/5/25 John Dlugosz <JDlugosz@tradestation.com>
>
typedef BaseClass<etc.> super;
It turns out that this does
work under VS2008.
Have you tried using injected names under VS2008? Like this:
template
<typename T>
struct C
:
boost::mpl::if_<
is_blue<T>,
Ca <T>,
Cb<T>
>::type {
C(blah&
a, xxx b) : if_(a, b) {}
};
Roman Perepelitsa.