Pass in a const reference to a CompareFunc for quickSort, to make Visual Studio 2011 happy.
Thanks to Cameron Hart Fixes Issue 588
This commit is contained in:
@@ -39,7 +39,7 @@ struct btAngleCompareFunc {
|
||||
: m_anchor(anchor)
|
||||
{
|
||||
}
|
||||
bool operator()(const GrahamVector2& a, const GrahamVector2& b) {
|
||||
bool operator()(const GrahamVector2& a, const GrahamVector2& b) const {
|
||||
if (a.m_angle != b.m_angle)
|
||||
return a.m_angle < b.m_angle;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user