mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Make dummy struct operator() const.
Solves a compile error with Visual C++ 2008.
This commit is contained in:
parent
6bb9ad1e80
commit
f56c0d0f77
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue