Boost logo

Boost Users :

From: gast128 (gast128_at_[hidden])
Date: 2004-11-22 15:08:37


David Abrahams <dave <at> boost-consulting.com> writes:

>
> "gast 128" <gast128 <at> hotmail.com> writes:
>
> > First I get not BOOST_MPL_ASSERT compilable on VC 7.1. From the
> > documentation I could read that it could replace
> > BOOST_MPL_ASSERT_IS_SAME, but I removed it completely, and switched
> > back to BOOST_STATIC_ASSERT.
>
> Please post the code.
>

That's simple:

#include "boost/mpl/assert.hpp"

void Testmpl6()
{
   BOOST_MPL_ASSERT(false); //fails with error C2143: syntax error :
missing '}' before '('
   BOOST_MPL_ASSERT((false)); //same error
}


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net