Boost logo

Boost :

Subject: Re: [boost] [mpl] Nested BOOST_MPL_ASSERT fails on VC11
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-10-13 21:51:47


On 10/11/2012 05:03 PM, Dave Abrahams wrote:
> I'm not qualified to answer this one; Aleksey?
> on Wed Oct 10 2012, Steven Watanabe <> wrote:
>> I just ran into the following bug:
>> template<class T>
>> struct test : T { BOOST_MPL_ASSERT((T)); };
>> BOOST_MPL_ASSERT((test<T>));
>> I've reworked BOOST_MPL_ASSERT to avoid the
>> problem in the attached patch. Okay to commit?

If no one objects within the next day or so,
I'm going to go ahead with it. The new code
is #ifdef'ed for msvc-11 only, so it shouldn't
cause problems on any other compiler. (I've
tested with gcc and clang as well.)

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at