r-lyeh-archived / ltalloc

LightweighT Almost Lock-Less Oriented for C++ programs memory allocator
BSD 3-Clause "New" or "Revised" License
164 stars 16 forks source link

Replace throw with noexcept. #5

Closed thegleich closed 6 years ago

thegleich commented 6 years ago

Throw specifier is deprecated since C++11 and is not supported by Clang 5.0 (produces a compile error). As such, it should be replaced with noexcept(false).

r-lyeh-archived commented 6 years ago

Thanks for the PR :) can you add a #ifdef __cplusplus >= c++11 version too? that would be great to keep compatibility :) !

thegleich commented 6 years ago

Sure, I'll create a new pull request with it!