1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Make dummy struct operator() const.

Solves a compile error with Visual C++ 2008.
This commit is contained in:
david
2011-07-25 23:31:17 +00:00
parent 6bb9ad1e80
commit f56c0d0f77

View File

@@ -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;
}
};