TRying again a better compare function signature for ubunutu

This commit is contained in:
Sam Gateau 2015-05-29 13:48:19 -07:00
parent 98160c8d60
commit 81396ae5aa

View file

@ -211,13 +211,13 @@ struct ItemBound {
}; };
struct FrontToBackSort { struct FrontToBackSort {
bool operator() (ItemBound& left, ItemBound& right) { bool operator() (const ItemBound& left, const ItemBound& right) {
return (left._centerDepth < right._centerDepth); return (left._centerDepth < right._centerDepth);
} }
}; };
struct BackToFrontSort { struct BackToFrontSort {
bool operator() (ItemBound& left, ItemBound& right) { bool operator() (const ItemBound& left, const ItemBound& right) {
return (left._centerDepth > right._centerDepth); return (left._centerDepth > right._centerDepth);
} }
}; };