boost::unordered_map and exceptions disabled

Hello,
I'm a user of boost::unordered_map and I always used this container with
exceptions disabled (because I never use them and don't want them enabled
if possible). I never had problems with that, but now with boost 1.50 and
GCC 4.7.1 I get this error while compiling code using unordered_map:
In file included from /usr/include/boost/unordered/unordered_map.hpp:17:0,
from /usr/include/boost/unordered_map.hpp:16,
from /home/hades/Bitral/include/CodeRegion.h:23,
from /home/hades/Bitral/src/BitralContext.cpp:20:
/usr/include/boost/unordered/detail/allocator_helpers.hpp: In instantiation
of 'void boost::unordered::detail::construct_node(Alloc&, T*, const Args&)
[with Alloc =
std::allocator

On 22 July 2012 16:23, Marcello Maggioni
The strange thing is that compiling the code with CLANG 3.1 and exceptions explicitly disabled works fine.
There is a way to make it work with exceptions disabled and G++?
Sorry, my mistake. I'll fix this in the next release. You probably avoid it by compiling in C++11 mode (--std=c++11). But if possible I'd suggest using 1.49, there's another bug when compiling in C++11 mode with a C++3 allocator. But if you can't, I'll add a patch for that to the release notes in a little bit.
participants (2)
-
Daniel James
-
Marcello Maggioni