summaryrefslogtreecommitdiff
path: root/queue.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-10-14 01:29:38 +0000
committerweidai <weidai11@users.noreply.github.com>2003-10-14 01:29:38 +0000
commitde2ce437755cf6bf4712bcd4d1fd5268d115b44e (patch)
treed59d7be418db8a4351a87f467e572d3a80205e84 /queue.cpp
parentcdcfe6b6af0d2cf0cced0930391f14861a823725 (diff)
downloadcryptopp-git-de2ce437755cf6bf4712bcd4d1fd5268d115b44e.tar.gz
fix bug in swap
Diffstat (limited to 'queue.cpp')
-rw-r--r--queue.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/queue.cpp b/queue.cpp
index aaffb1e4..6c5c5545 100644
--- a/queue.cpp
+++ b/queue.cpp
@@ -462,11 +462,13 @@ byte ByteQueue::operator[](unsigned long i) const
void ByteQueue::swap(ByteQueue &rhs)
{
+ std::swap(m_autoNodeSize, rhs.m_autoNodeSize);
std::swap(m_nodeSize, rhs.m_nodeSize);
std::swap(m_head, rhs.m_head);
std::swap(m_tail, rhs.m_tail);
std::swap(m_lazyString, rhs.m_lazyString);
std::swap(m_lazyLength, rhs.m_lazyLength);
+ std::swap(m_lazyStringModifiable, rhs.m_lazyStringModifiable);
}
// ********************************************************