Parent Directory | Revision Log | Patch
revision 656 by torben, Fri Apr 23 06:04:54 2010 UTC | revision 657 by torben, Fri Apr 23 07:36:31 2010 UTC | |
---|---|---|
# | Line 49 public: | Line 49 public: |
49 | //bool operator ==(const Solution& sol); | //bool operator ==(const Solution& sol); |
50 | bool operator ==(const Solution& s) | bool operator ==(const Solution& s) |
51 | { | { |
52 | const Solution& sol = dynamic_cast<const Solution&>(s); | //const Solution& sol = dynamic_cast<const Solution&>(s); |
53 | for (int i=0; i<m_size; i++) | for (int i=0; i<m_size; i++) |
54 | if (m_matrix[i] != sol.m_matrix[i]) | if (m_matrix[i] != s.m_matrix[i]) |
55 | return false; | return false; |
56 | return true; | return true; |
57 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |