diff --git a/include/tl/optional.hpp b/include/tl/optional.hpp index 37b774a..ea06e9e 100644 --- a/include/tl/optional.hpp +++ b/include/tl/optional.hpp @@ -409,7 +409,7 @@ template struct optional_operations_base : optional_storage_base { this->m_has_value = false; } - template void construct(Args &&... args) noexcept { + template void construct(Args &&... args) { new (std::addressof(this->m_value)) T(std::forward(args)...); this->m_has_value = true; }