Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-05-13 04:59:51


Rene Rivera wrote:
> While investigating this test failure..
>
> http://www.meta-comm.com/engineering/boost-regression/cvs-head/developer/output/metacomm-bin-boost-libs-spirit-test-char_strings_test_fail-test-cw-8_3-debug-threading-multi.html
> http://tinyurl.com/93yz9
>
> Which is a compile-fail test, but compiles successfully with CW-8.3. I
> narrowed the problem down to this minimal test..
>
> #include <boost/static_assert.hpp>
>
> template <std::size_t N> void foo_p()
> {
> BOOST_STATIC_ASSERT(N < 3);
> }
>
> int main()
> {
> foo_p<5>();
> }
>
> ..Which compiles without problems. The static_assert code is simple
> enough so I'm somewhat at a loss here.

Are you running it with two-phase templates enabled? boost::checked_delete
has a workaround for CW ignoring unreferenced dependent typedefs which might
be of help here.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk