/[projects]/queensgui/src/solution.h
ViewVC logotype

Diff of /queensgui/src/solution.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 655 by torben, Fri Apr 23 05:57:28 2010 UTC revision 656 by torben, Fri Apr 23 06:04:54 2010 UTC
# Line 46  public: Line 46  public:
46    
47    
48    
49      bool operator ==(const Solution& sol);      //bool operator ==(const Solution& sol);
50            bool operator ==(const Solution& s)
51            {
52            const Solution& sol = dynamic_cast<const Solution&>(s);
53                for (int i=0; i<m_size; i++)
54                if (m_matrix[i] != sol.m_matrix[i])
55                        return false;
56                return true;
57            }
58    
59      Solution* copy();      Solution* copy();
60    

Legend:
Removed from v.655  
changed lines
  Added in v.656

  ViewVC Help
Powered by ViewVC 1.1.20