libstrat: fix override operator new to be noexcept (closes #1494)

This commit is contained in:
Michael Scire committed 2021-05-16 23:10:13 -07:00
1 parent 25be7c5b1b
commit c790d03693
3 files changed
+13 -15

No files matched your search

@@ -106,11 +106,9 @@ namespace ams::fssystem {
using Newable::operator new;
using Newable::operator delete;
static void *operator new(size_t, void *p) {
return p;
}
static void operator delete(void *, size_t, void*) { /* ... */ }
static ALWAYS_INLINE void *operator new(size_t, void *p) noexcept { return p; }
static ALWAYS_INLINE void operator delete(void *, size_t, void*) noexcept { /* ... */ }
};
using AttrListTraits = util::IntrusiveListBaseTraits<AttrInfo>;