ams: build with -std=gnu++23

This commit is contained in:
Michael Scire
2024-05-26 15:39:00 -07:00
committed by SciresM
parent f35c94810c
commit 1609f804f2
9 changed files with 15 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ namespace ams::htc::server::rpc {
#else
static constexpr size_t MaxTaskSize = 0xE1D8;
#endif
using TaskStorage = typename std::aligned_storage<MaxTaskSize, alignof(void *)>::type;
struct TaskStorage { alignas(alignof(void *)) std::byte _storage[MaxTaskSize]; };
private:
bool m_valid[MaxRpcCount]{};
TaskStorage m_storages[MaxRpcCount]{};