Skip to content
Browse files

Change signature of typecast operator

  • Loading branch information...
1 parent 4108781 commit f0173e063b72e8ad5fadeb75fbafce441d43aad8 @pprindeville committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 Net/include/Poco/Net/IPAddress.h
  2. +1 −1 Net/src/IPAddress.cpp
View
2 Net/include/Poco/Net/IPAddress.h
@@ -324,7 +324,7 @@ class Net_API IPAddress
IPAddress operator ^ (const IPAddress& addr) const;
IPAddress operator ~ () const;
- const sockaddr operator () () const;
+ operator const sockaddr () const;
/// cast to sockaddr
poco_socklen_t length() const;
View
2 Net/src/IPAddress.cpp
@@ -1167,7 +1167,7 @@ IPAddress IPAddress::operator ~ () const
}
-const sockaddr IPAddress::operator () () const
+IPAddress::operator const sockaddr () const
{
sockaddr sock;

0 comments on commit f0173e0

Please sign in to comment.
Something went wrong with that request. Please try again.