summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-11-01 21:09:38 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2026-11-01 21:09:38 -0600
commitd08bddeaabbfba79f76407018ab02bdf68fa2d46 (patch)
tree9da9a56495a8a21e9c87202ebb0ce9fae653ff78
parentfaae54eec7b0b017f5792fb6c9da2fb5143dcecc (diff)
Common/TypeUtils: Remove missing `__cpp_aggregate_paren_init` feature workaround.
-rw-r--r--Source/Core/Common/TypeUtils.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/Core/Common/TypeUtils.h b/Source/Core/Common/TypeUtils.h
index 2e18a411ed..16a40955a3 100644
--- a/Source/Core/Common/TypeUtils.h
+++ b/Source/Core/Common/TypeUtils.h
@@ -97,13 +97,7 @@ public:
T& Construct(Args&&... args)
{
static_assert(sizeof(ManuallyConstructedValue) == sizeof(T));
-
-// TODO: Remove placement-new version when we can require Clang 16.
-#if defined(__cpp_aggregate_paren_init) && (__cpp_aggregate_paren_init >= 201902L)
return *std::construct_at(&m_value.data, std::forward<Args>(args)...);
-#else
- return *::new (&m_value.data) T{std::forward<Args>(args)...};
-#endif
}
void Destroy() { std::destroy_at(&m_value.data); }