Steven,
please see my question below.
AMDG
[...]
CircularBuffer temp(other);
// assignment operator
CircularBuffer& operator= (const CircularBuffer& other)
{
WriteLock w_lock(rw_mutex);using std::swap;
swap(m_capacity, other.m_capacity);
swap(m_buffer, other.m_buffer);
return *this;
}
In Christ,
Steven Watanabe