aboutsummaryrefslogtreecommitdiff
path: root/include/optional
diff options
context:
space:
mode:
Diffstat (limited to 'include/optional')
-rw-r--r--include/optional4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/optional b/include/optional
index 8c7a242113a0..70b6eb44dcd6 100644
--- a/include/optional
+++ b/include/optional
@@ -599,8 +599,8 @@ private:
public:
_LIBCPP_INLINE_VISIBILITY constexpr optional() noexcept {}
- _LIBCPP_INLINE_VISIBILITY optional(const optional&) = default;
- _LIBCPP_INLINE_VISIBILITY optional(optional&&) = default;
+ _LIBCPP_INLINE_VISIBILITY constexpr optional(const optional&) = default;
+ _LIBCPP_INLINE_VISIBILITY constexpr optional(optional&&) = default;
_LIBCPP_INLINE_VISIBILITY constexpr optional(nullopt_t) noexcept {}
template <class... _Args, class = enable_if_t<