mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Provide a fallback definition for std::nothrow
This commit is contained in:
committed by
Andrew Kaster
parent
2470dd3bb5
commit
22f0d04f43
@@ -60,4 +60,10 @@ void operator delete[](void* ptr, size_t) noexcept
|
|||||||
return free(ptr);
|
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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user