summaryrefslogtreecommitdiff
path: root/src/networkAddress.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-11 15:35:01 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-11 15:35:01 +0000
commit0fc2eea3dd4254d921282b7a692c06a63c7644c0 (patch)
tree7842c712aca66ea35d46277c0d46e85d97de48e4 /src/networkAddress.cpp
parenttypes fixes (diff)
networkaddress::operator<() throws exception if types don't match
Diffstat (limited to 'src/networkAddress.cpp')
-rw-r--r--src/networkAddress.cpp2
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_);