mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03:00
AK: Provide a fallback definition for std::nothrow
This commit is contained in:
parent
2470dd3bb5
commit
22f0d04f43
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/22f0d04f43 Pull-request: https://github.com/SerenityOS/serenity/pull/17173 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/alimpfard
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user