From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-09-21 18:52:47
Felipe Magno de Almeida wrote:
> On 9/21/05, Peter Dimov <pdimov_at_[hidden]> wrote:
>> Excuse me for my jumping late into the thread, but what are the
>> situations where one would want to use a BOOST_ASSERT with __assume
>> instead of assert?
> __assume on MSVC passes hints to the compiler for optimization, it
> assumes the expression is always true.
Yes, I actually knew that, but thought that assert on MSVC already does
__assume. But it doesn't. Maybe it did once and they switched it back when
developers complained, :-) or maybe I was just misremembering things.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk