private-inheritance

Private inheritance and swap

I'm using private inheritance in the implementation of two very related classes. The using Base::X; is very useful and elegant. However, I can't seem to find an elegant solution for reusing the base class's swap function. class A { public: iterator begin(); const_iterator begin() const; const_iterator cbegin() const; ...