From 872d19acf33c19c3c6ca42255f5e86cc2c120bff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 8 Oct 2011 00:17:25 +0100 Subject: [PATCH] Preserve const-ness in string comparer. --- retrace.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrace.hpp b/retrace.hpp index 806d6ed..b697adb 100644 --- a/retrace.hpp +++ b/retrace.hpp @@ -97,7 +97,7 @@ struct Entry { struct stringComparer { - bool operator() (const char *a, const char *b) { + bool operator() (const char *a, const char *b) const { return strcmp(a, b) < 0; } }; -- 2.7.4