20 Sep
2007
20 Sep
'07
8:35 a.m.
Miles Bader skrev:
Thorsten Ottosen
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... 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