aboutsummaryrefslogtreecommitdiffstats
path: root/common/aloptional.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/aloptional.h')
-rw-r--r--common/aloptional.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/aloptional.h b/common/aloptional.h
index a8ca18ba..0eafd4d1 100644
--- a/common/aloptional.h
+++ b/common/aloptional.h
@@ -58,9 +58,9 @@ class optional {
storage_t mStore;
template<typename... Args>
- void doConstruct(Args&& ...args)
+ void doConstruct(Args&& ...args) noexcept(noexcept(al::construct_at(std::declval<T*>(), std::forward<Args>(args)...)))
{
- ::new(std::addressof(mStore.mValue)) T{std::forward<Args>(args)...};
+ al::construct_at(std::addressof(mStore.mValue), std::forward<Args>(args)...);
mStore.mHasValue = true;
}