From 3d359840a111c4e7eace1dc0391e2a8b05221df8 Mon Sep 17 00:00:00 2001 From: Armin Burgmeier Date: Sat, 11 Jul 2009 00:31:47 +0200 Subject: [PATCH] Declare StdBuf::operator< as const so that it is used in map lookups --- standard/inc/StdBuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard/inc/StdBuf.h b/standard/inc/StdBuf.h index 4333ca23c..53a08cad0 100644 --- a/standard/inc/StdBuf.h +++ b/standard/inc/StdBuf.h @@ -539,7 +539,7 @@ public: operator const void *() const { return getData(); } // less-than operation for map - inline bool operator <(const StdStrBuf &v2) + inline bool operator <(const StdStrBuf &v2) const { int iLen = getLength(), iLen2 = v2.getLength(); if (iLen == iLen2)