Declare the operator const

This commit is contained in:
Andreas Fabri 2010-12-12 21:32:16 +00:00
parent de2413466a
commit 00a7b64e89
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ struct Pair_lexicographical_less_than {
* returns \c true iff \c x is lexicograhically smaller than \c y
* using \c Less1 and \c Less2 functors.
*/
bool operator () (const std::pair<T1,T2>& x, const std::pair<T1,T2>& y) {
bool operator () (const std::pair<T1,T2>& x, const std::pair<T1,T2>& y) const {
Less1 lt1;
Less2 lt2;