Boost logo

Boost Users :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-09-20 04:35:39


Miles Bader skrev:
> Thorsten Ottosen <thorsten.ottosen_at_[hidden]> writes:
>> Are you referring to a debug build?
>
> No
>
>> What compiler?
>
> "g++ (GCC) 4.2.1 (Debian 4.2.1-5)"
>
> The command I used was:
>
> g++ -O3 -fomit-frame-pointer x.cc
>
> I'm using Debian's "libboost-dev" package, version 1.34.1-2.
>
>> 1.34 introduced a macro for tuning all the exceptions into asserts.

See

http://www.boost.org/libs/ptr_container/doc/reference.html#disabling-the-use-of-exceptions

btw

> Hmmm I didn't explicitly define any macros, but what the compiled code
> contains seems to be asserts.

Ok, you need to turn assertions off in release mode, perhaps by using
-DNDEBUG=1

> Are asserts generally smaller/larger than throws?

At least when compiled away :-)

-Thorsten


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net