gvinciguerra/PGM-index

noexcept

bftjoe opened this issue · 2 comments

Please make an option to make this not throw exceptions. Throwing exceptions forces changes to the code or to enable exceptions which can impact performance.

Hi, can you describe a bit what you need this for, what exceptions are you referring to (e.g. the ones thrown during construction by the PGMIndex class?), and what alternatives to exceptions you were thinking of?

For instance, try to compile this example with -fno-exceptions

https://github.com/gvinciguerra/PGM-index/blob/master/examples/updates.cpp

This library lets you compile it with no exceptions:
https://github.com/search?q=repo%3Ayhirose%2Fcpp-httplib%20httplib_no_exceptions&type=code