Closed silviucpp closed 4 years ago
I don't really know anything about that use case. Why would a project use -fno-exceptions
? What does the std map do when allocation fails?
Hello,
I have no idea what stl is doing. But because google is not using exceptions into their projects: https://google.github.io/styleguide/cppguide.html#Exceptions lot of their projects are built with -fno-exceptions. STL for some reason works ok but when trying to replace std::unordered_map with your lib it's not longer compiling if not dropping -fno-exceptions
Silviu
Ok it seems the stl simply replaced all throws with abort() with that flag. I think this should be simple to add. See https://stackoverflow.com/a/7249442 and https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_exceptions.html
Oh I see.. good to know. Anyway if you are working with google open source projects most of them are compiled with -fno-exceptions. So supporting this might be a good idea.
Silviu
Can you try if this latest version works for you: https://raw.githubusercontent.com/martinus/robin-hood-hashing/master/src/include/robin_hood.h
closing, as it works for me in my builds (even tests work)
Hello,
Unfortunately for projects compiled with
-fno-exceptions
you can't use the library and need to stick withstd::
one. Any plan to support also this ?Silviu