|
Boost : |
From: Thomas Matelich (matelich_at_[hidden])
Date: 2005-09-21 10:35:47
On 9/21/05, Thorsten Ottosen <nesotto_at_[hidden]> wrote:
>
>
> I don't get it. If you put BOOST_ASSERT( false ) anywhere, then you
> effectively say "never exceute this code". Otherwise there is an error
> in the assertion itself.
>
> So I don't see how it can break anything.
>
> (The effect of removing an assertion must not be any in a correct
> program).
This is a very academic argument, in real life code that should never happen
does and breaking code which tried to be robust to that is a bad idea.
Personally, though, I'd probably want a #define to use old behavior until I
could validate __assume won't break it.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk