Fixed move constructor for win32_overlapped_operation_cancellable. (#80)

Addresses aspects of #34.
This commit is contained in:
mwinterb 2018-07-17 09:55:19 -07:00 committed by Lewis Baker
parent 2492c07829
commit d3a569f6c5

View file

@ -172,9 +172,9 @@ namespace cppcoro
: win32_overlapped_operation_base(std::move(other))
, m_state(other.m_state.load(std::memory_order_relaxed))
, m_cancellationToken(std::move(other.m_cancellationToken))
, m_errorCode(other.m_errorCode)
, m_numberOfBytesTransferred(other.m_numberOfBytesTransferred)
{
assert(m_errorCode == other.m_errorCode);
assert(m_numberOfBytesTransferred == other.m_numberOfBytesTransferred);
}
public: