Tessil / ordered-map

C++ hash map and hash set which preserve the order of insertion
MIT License
517 stars 67 forks source link

Add the possibility to use the library without exceptions #13

Closed Tessil closed 6 years ago

Tessil commented 6 years ago

This PR adds the possibility to use the library with exceptions disabled (through -fno-exceptions option on Clang and GCC, without an /EH option on MSVC or simply by defining TSL_NO_EXCEPTIONS). std::terminate is used in replacement of the throw instruction when exceptions are disabled.