aboutsummaryrefslogtreecommitdiff
path: root/option.h
diff options
context:
space:
mode:
Diffstat (limited to 'option.h')
-rw-r--r--option.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/option.h b/option.h
index fd26acb..ab7a72e 100644
--- a/option.h
+++ b/option.h
@@ -37,7 +37,7 @@ struct option {
}
}
- constexpr option(option&& op) : m_has_value{op.has_value()} {
+ constexpr option(option&& op) noexcept : m_has_value{op.has_value()} {
if (op.m_has_value) {
// Move construct from inner VALUE of OP.
new (m_value) T(std::move(op.take()));