mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 21:19:01 +00:00
Make dummy struct operator() const.
Solves a compile error with Visual C++ 2008.
This commit is contained in:
@@ -1338,7 +1338,7 @@ void TracerouteState::remove_finished_hosts() {
|
|||||||
|
|
||||||
/* Dummy class to use sockaddr_storage as a map key. */
|
/* Dummy class to use sockaddr_storage as a map key. */
|
||||||
struct lt_sockaddr_storage {
|
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;
|
return sockaddr_storage_cmp(&a, &b) < 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user