Merge pull request #53 from Tindarid/master

Remove `noexcept` specifier for `construct()`
This commit is contained in:
Sy Brand authored and GitHub committed 2023-02-24 09:21:00 +00:00
commit f34e20b228
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -409,7 +409,7 @@ template <class T> struct optional_operations_base : optional_storage_base<T> {
this->m_has_value = false;
}
template <class... Args> void construct(Args &&... args) noexcept {
template <class... Args> void construct(Args &&... args) {
new (std::addressof(this->m_value)) T(std::forward<Args>(args)...);
this->m_has_value = true;
}