Fix optional move constructor

This commit is contained in:
Smirnov Alexey 2021-02-15 00:20:08 +03:00
parent ad66b070a7
commit fdd5c26eb8

View File

@ -84,7 +84,7 @@ namespace util
// Implementation //////////////////////////////////////////////////////////
template<class T> optional<T>::optional(T &&v) noexcept
: m_holder(v)
: m_holder(std::move(v))
{
}