diff --git a/eo/src/eoPop.h b/eo/src/eoPop.h index 44bea7b8..22bd93b5 100644 --- a/eo/src/eoPop.h +++ b/eo/src/eoPop.h @@ -110,7 +110,7 @@ class eoPop: public vector, public eoObject, public eoPersistent struct Ref { const EOT* operator()(const EOT& eot) { return &eot;}}; /// helper struct for comparing on pointers struct Cmp { - bool operator()(const EO* a, const EO* b) const + bool operator()(const EOT* a, const EOT* b) const { return b->operator<(*a); } }; @@ -120,7 +120,7 @@ class eoPop: public vector, public eoObject, public eoPersistent */ void sort(void) { - std::sort(begin(), end(), greater >()); + std::sort(begin(), end(), greater()); } void sort(vector& result) const @@ -139,7 +139,7 @@ class eoPop: public vector, public eoObject, public eoPersistent eoPop::iterator nth_element(int nth) { typename eoPop::iterator it = begin() + nth; - std::nth_element(begin(), it, end(), greater >()); + std::nth_element(begin(), it, end(), greater()); return it; }