mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-18 01:38:08 -06:00
Common/TypeUtils: Remove missing __cpp_aggregate_paren_init feature workaround.
This commit is contained in:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user