diff options
| author | 2020-07-18 23:06:13 +0000 | |
|---|---|---|
| committer | 2020-07-18 23:06:16 +0000 | |
| commit | db43b37e1545ff9014b3e9131267b22dd6da2ffb (patch) | |
| tree | a51512d1398475132422d723528b23ad34104a7f /src | |
| parent | Merge pull request #3349 from FearlessTobi/translationnns (diff) | |
| download | yuzu-db43b37e1545ff9014b3e9131267b22dd6da2ffb.tar.gz yuzu-db43b37e1545ff9014b3e9131267b22dd6da2ffb.tar.xz yuzu-db43b37e1545ff9014b3e9131267b22dd6da2ffb.zip | |
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});
~~~~~^
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/alignment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h index 4025ba651..ef4d6f896 100644 --- a/src/common/alignment.h +++ b/src/common/alignment.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #pragma once | 3 | #pragma once |
| 4 | 4 | ||
| 5 | #include <cstddef> | 5 | #include <cstddef> |
| 6 | #include <new> | ||
| 6 | #include <type_traits> | 7 | #include <type_traits> |
| 7 | 8 | ||
| 8 | namespace Common { | 9 | namespace Common { |