orlp / pdqsort

Pattern-defeating quicksort.
zlib License
2.37k stars 102 forks source link

error handling #12

Closed DBJDBJ closed 5 years ago

DBJDBJ commented 5 years ago

Fantastic work. Not an issue more of a question. standard C++ lib is not "exception free", but I will ask anyway. Can we use this lib in "exception free" programs? Using let's say MSVC.

orlp commented 5 years ago

pdqsort does not throw exceptions of itself, nor does it allocate memory. The only exceptions that occur while using it is due to trying to sort types that throw on swapping, moving, destructing, etc... or using a throwing comparison function.