Commit 0831f0d3 authored by Samer Afach's avatar Samer Afach

Fix move constructor; variable was not initialized.

parent d117c89a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment