davideberly / GeometricTools

A collection of source code for computing in the fields of mathematics, geometry, graphics, image analysis and physics.
Boost Software License 1.0
1.08k stars 202 forks source link

glt Multiarray error #73

Closed WuyangPeng closed 10 months ago

WuyangPeng commented 10 months ago

bool operator< (Multiarray const& other) const { if (Lattice::operator<(other)) { return true; } if (Lattice::operator<(other)) // here > { return false; } return mContainer < other.mContainer; }

davideberly commented 10 months ago

Thank you for reporting this bug. The MultiarrayAdapter class has the correct comparison. I need to look at the unit test to see why this bug was not detected. At the moment I am on travel and do not have access to my unit test harness. When I return I will post the bug fix and modify the unit tests accordingly.

davideberly commented 10 months ago

Fixed and posted.