summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2015-01-22 12:25:18 -0800
committerBen Longbons <b.r.longbons@gmail.com>2015-01-22 12:25:18 -0800
commitb2f0d495cd85188e0f9f2d4d363655da40e6e5e6 (patch)
treeccc8997361bd66efeea6e7e1502e1b483f04ed7f /src/net
parent57e5142d5c9d326912610e3bd60743420f8a328a (diff)
downloadtmwa-b2f0d495cd85188e0f9f2d4d363655da40e6e5e6.tar.gz
tmwa-b2f0d495cd85188e0f9f2d4d363655da40e6e5e6.tar.bz2
tmwa-b2f0d495cd85188e0f9f2d4d363655da40e6e5e6.tar.xz
tmwa-b2f0d495cd85188e0f9f2d4d363655da40e6e5e6.zip
Have I mentioned that I hate ADL?
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ip.cpp4
-rw-r--r--src/net/ip.hpp4
-rw-r--r--src/net/ip_test.cpp1
3 files changed, 5 insertions, 4 deletions
diff --git a/src/net/ip.cpp b/src/net/ip.cpp
index 4ec022b..3dc242d 100644
--- a/src/net/ip.cpp
+++ b/src/net/ip.cpp
@@ -29,7 +29,7 @@
namespace tmwa
{
-bool extract(XString str, IP4Address *rv)
+bool impl_extract(XString str, IP4Address *rv)
{
if (str.endswith('.'))
return false;
@@ -42,7 +42,7 @@ bool extract(XString str, IP4Address *rv)
return false;
}
-bool extract(XString str, IP4Mask *rv)
+bool impl_extract(XString str, IP4Mask *rv)
{
IP4Address a, m;
unsigned b;
diff --git a/src/net/ip.hpp b/src/net/ip.hpp
index ab45c56..82d9430 100644
--- a/src/net/ip.hpp
+++ b/src/net/ip.hpp
@@ -158,7 +158,7 @@ IP4Address IP4_BROADCAST({255, 255, 255, 255});
VString<15> convert_for_printf(IP4Address a);
VString<31> convert_for_printf(IP4Mask m);
-bool extract(XString str, IP4Address *iv);
+bool impl_extract(XString str, IP4Address *iv);
-bool extract(XString str, IP4Mask *iv);
+bool impl_extract(XString str, IP4Mask *iv);
} // namespace tmwa
diff --git a/src/net/ip_test.cpp b/src/net/ip_test.cpp
index 419dc03..2b9bcad 100644
--- a/src/net/ip_test.cpp
+++ b/src/net/ip_test.cpp
@@ -24,6 +24,7 @@
#include "../strings/literal.hpp"
#include "../io/cxxstdio.hpp"
+#include "../io/extract.hpp"
#include "../poison.hpp"