This commit is contained in:
Simon Brand
2017-10-01 21:53:20 +01:00
parent 5f7b0694d1
commit 29820df89b

View File

@ -610,7 +610,12 @@ namespace tl {
}
// [optional.mod], modifiers
void reset() noexcept;
void reset() noexcept {
if (has_value()) {
this->m_value.~T();
this->m_has_value = false;
}
}
private: