diff options
author | Christian Pointner <equinox@anytun.org> | 2008-12-11 15:35:01 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-12-11 15:35:01 +0000 |
commit | 0fc2eea3dd4254d921282b7a692c06a63c7644c0 (patch) | |
tree | 7842c712aca66ea35d46277c0d46e85d97de48e4 | |
parent | types fixes (diff) |
networkaddress::operator<() throws exception if types don't match
-rw-r--r-- | src/networkAddress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networkAddress.cpp b/src/networkAddress.cpp index a3f98d9..5b94224 100644 --- a/src/networkAddress.cpp +++ b/src/networkAddress.cpp @@ -122,7 +122,7 @@ std::string NetworkAddress::toString() const bool NetworkAddress::operator<(const NetworkAddress &right) const { if (network_address_type_!=right.network_address_type_) - return false; + throw std::runtime_error("NetworkAddress::operator<() address types don't match"); if (network_address_type_==ipv4) { return (ipv4_address_ < right.ipv4_address_); |