Open nasailja opened 7 years ago
For reference:
diff --git a/memoryallocation.cpp b/memoryallocation.cpp
index 7c4c6fb9..9fff5766 100644
--- a/memoryallocation.cpp
+++ b/memoryallocation.cpp
@@ -49,7 +49,7 @@ void *operator new(size_t size)
}
// Global delete using jemalloc
-void operator delete(void *p)
+void operator delete(void *p) noexcept
{
je_free(p);
}
@@ -68,7 +68,7 @@ void *operator new[](size_t size)
}
// Global delete[] using jemalloc
-void operator delete[](void *p)
+void operator delete[](void *p) noexcept
{
je_free(p);
}
Trying to compile with gcc 4.8.5:
Apparently deletes are noexcept in c++11 (http://en.cppreference.com/w/cpp/memory/new/operator_delete) and adding noexcept to both fixed the issue for me.