Make JEMALLOC_CXX_THROW definition compatible with newer C++ versions

This commit is contained in:
Guangli Dai 2024-06-06 11:14:40 -07:00 committed by Qi Wang
parent 867c6dd7dc
commit 21bcc0a8d4

View file

@ -52,7 +52,7 @@
#define MALLCTL_ARENAS_DESTROYED 4097
#if defined(__cplusplus) && defined(JEMALLOC_USE_CXX_THROW)
# define JEMALLOC_CXX_THROW throw()
# define JEMALLOC_CXX_THROW noexcept (true)
#else
# define JEMALLOC_CXX_THROW
#endif