mirror of
https://github.com/TartanLlama/optional.git
synced 2025-07-29 17:37:13 +02:00
Remove noexcept
specifier for construct()
This commit is contained in:
@ -409,7 +409,7 @@ template <class T> struct optional_operations_base : optional_storage_base<T> {
|
|||||||
this->m_has_value = false;
|
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)...);
|
new (std::addressof(this->m_value)) T(std::forward<Args>(args)...);
|
||||||
this->m_has_value = true;
|
this->m_has_value = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user