Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-09-22 09:13:24

Geert Ceuppens wrote:
> There is a line missing from boost\static_assert.hpp:
> template <bool x> struct STATIC_ASSERTION_FAILURE;
> template <> struct STATIC_ASSERTION_FAILURE<true> { enum { value = 1 }; };
> // The following line was missing and therefore caused a compile failure
> in ublas under MSVC7.1:
> template <> struct STATIC_ASSERTION_FAILURE<false> { enum { value = 0 }; };
> Please add this to the distribution

Errmm... you do know that the whole point of BOOST_STATIC_ASSERT is to
give an error at compile-time when you feed 'false' to it, do you? Your
"fix" actually renders BOOST_STATIC_ASSERT completely useless.

You should better have a look at the expression that resulted in 'false'
at compile-time because this is what should not happen and what
BOOST_STATIC_ASSERT is reporting. The error message from your compiler
should contain a hint where to look for it.

Regards, Daniel

Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web:

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