From f56c0d0f77cf599a0c03ec07b1af47474459370f Mon Sep 17 00:00:00 2001 From: david Date: Mon, 25 Jul 2011 23:31:17 +0000 Subject: [PATCH] Make dummy struct operator() const. Solves a compile error with Visual C++ 2008. --- traceroute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traceroute.cc b/traceroute.cc index b972828d7..dec5353af 100644 --- a/traceroute.cc +++ b/traceroute.cc @@ -1338,7 +1338,7 @@ void TracerouteState::remove_finished_hosts() { /* Dummy class to use sockaddr_storage as a map key. */ struct lt_sockaddr_storage { - bool operator()(const struct sockaddr_storage& a, const struct sockaddr_storage& b) { + bool operator()(const struct sockaddr_storage& a, const struct sockaddr_storage& b) const { return sockaddr_storage_cmp(&a, &b) < 0; } };