Fix move constructor; variable was not initialized.

This commit is contained in:
Samer Afach 2017-07-07 21:49:25 +02:00
parent d117c89a9e
commit 0831f0d387

View File

@ -44,6 +44,7 @@ SmartHandle<T,Deleter>::SmartHandle(T value, Deleter deleter)
template<typename T, typename Deleter>
SmartHandle<T,Deleter>::SmartHandle(SmartHandle&& src)
{
this->_doDelete = 0;
this->reset(src._value,src._deleter);
src._doDelete = 0;
}