mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-10-21 01:46:44 +08:00
alignment: explicitly include <new> after 723edb4c0659
In file included from src/core/hle/kernel/memory/page_table.cpp:5:
src/./common/alignment.h:67:68: error: no member named 'align_val_t' in namespace 'std'
return static_cast<T*>(::operator new (n * sizeof(T), std::align_val_t{Align}));
~~~~~^
src/./common/alignment.h:71:51: error: no member named 'align_val_t' in namespace 'std'
::operator delete (p, n * sizeof(T), std::align_val_t{Align});
~~~~~^
This commit is contained in:
parent
9943a478fe
commit
db43b37e15
@ -3,6 +3,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <new>
|
||||
#include <type_traits>
|
||||
|
||||
namespace Common {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user