
21 Sep
2005
21 Sep
'05
11:52 p.m.
Felipe Magno de Almeida wrote:
On 9/21/05, Peter Dimov <pdimov@mmltd.net> 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.