From 8dc5f051c7e2c3d0e8e5b94dd829d00c47d7e51c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 1 Jan 2009 17:08:41 +0000 Subject: [PATCH] VC6 doesn't support using keyword (closes #10322) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/sckaddr.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/wx/sckaddr.h b/include/wx/sckaddr.h index 3fbb01ce98..28d1500cfd 100644 --- a/include/wx/sckaddr.h +++ b/include/wx/sckaddr.h @@ -128,9 +128,14 @@ public: // IPv4-specific methods: bool Hostname(unsigned long addr); - bool BroadcastAddress(); + // make base class methods hidden by our overload visible + // + // FIXME-VC6: replace this with "using IPAddress::Hostname" (not supported + // by VC6) when support for it is dropped + wxString Hostname() const { return wxIPaddress::Hostname(); } + bool Hostname(const wxString& name) { return wxIPaddress::Hostname(name); } - using wxIPaddress::Hostname; + bool BroadcastAddress(); private: virtual void DoInitImpl(); -- 2.45.2