AK: Provide a fallback definition for std::nothrow

This commit is contained in:
Tim Schumacher 2023-01-01 13:32:59 +01:00 committed by Andrew Kaster
parent 2470dd3bb5
commit 22f0d04f43
Notes: sideshowbarker 2024-07-17 08:55:54 +09:00

View File

@ -60,4 +60,10 @@ void operator delete[](void* ptr, size_t) noexcept
return free(ptr);
}
// This is usually provided by libstdc++ in most cases, and the kernel has its own definition in
// Kernel/Heap/kmalloc.cpp. If neither of those apply, the following should suffice to not fail during linking.
namespace AK_REPLACED_STD_NAMESPACE {
const nothrow_t nothrow;
}
#endif