--- queensgui/src/solutionmnvector.cpp 2007/07/19 22:26:42 2 +++ queensgui/src/containermnvector.cpp 2007/07/20 09:54:09 6 @@ -17,21 +17,23 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include "solutionmnvector.h" +#include "containermnvector.h" -SolutionMNVector::SolutionMNVector(GUIUpdate* update) - : SolutionVector(update) +#include + +ContainerMNVector::ContainerMNVector(GUIUpdate* update) + : ContainerVector(update) { } -SolutionMNVector::~SolutionMNVector() +ContainerMNVector::~ContainerMNVector() { } -void SolutionMNVector::uniqueSolutions() +void ContainerMNVector::uniqueSolutions() { - std::vector buf; + std::vector< boost::shared_ptr > buf; buf.reserve(solutions.size() / 10); for (unsigned int i=0; icopy() ; + std::auto_ptr tmp ( solutions[i]->copy() ) ; if (*tmp == *buf[j]) break; tmp->rotate90(); - if (tmp == buf[j]) + if ( *tmp == *buf[j]) break; tmp->rotate90();