aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbutl/optional.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbutl/optional.hxx b/libbutl/optional.hxx
index 7d66ac5..e30504e 100644
--- a/libbutl/optional.hxx
+++ b/libbutl/optional.hxx
@@ -263,10 +263,10 @@ namespace butl
#if (!defined(_MSC_VER) || _MSC_VER > 1900) && \
(!defined(__GNUC__) || __GNUC__ > 4 || defined(__clang__))
constexpr optional (const optional&) = default;
- constexpr optional (optional&&) = default;
+ constexpr optional (optional&&) noexcept (is_nothrow_constructible<T, T>::value) = default;
#else
optional (const optional&) = default;
- optional (optional&&) = default;
+ optional (optional&&) noexcept (is_nothrow_constructible<T, T>::value) = default;
#endif
optional& operator= (nullopt_t v) {static_cast<base&> (*this) = v; return *this;}