Skip to content

Commit fdd5c26

Browse files
Fix optional move constructor
1 parent ad66b07 commit fdd5c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gapi/include/opencv2/gapi/util/optional.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ namespace util
8484

8585
// Implementation //////////////////////////////////////////////////////////
8686
template<class T> optional<T>::optional(T &&v) noexcept
87-
: m_holder(v)
87+
: m_holder(std::move(v))
8888
{
8989
}
9090

0 commit comments

Comments
 (0)