I'm still getting the privacy issues even after implementing the member swap to swap around members:
What am I doing wrong that I still get the "blah is private within this context" error?Code:void Foo::m_swap( Foo& f ){ int temp_value = this->m_value; this->m_value = f.m_value; f.m_value = temp_value; }
EDIT: the error is still citing "Foo::Foo( const Foo& )" as the issue? I thought I was avoiding copying now? I'm lost.