diff --git a/Net/include/Poco/Net/ParallelSocketAcceptor.h b/Net/include/Poco/Net/ParallelSocketAcceptor.h index 4f55cd818..7b9a3dabd 100644 --- a/Net/include/Poco/Net/ParallelSocketAcceptor.h +++ b/Net/include/Poco/Net/ParallelSocketAcceptor.h @@ -185,8 +185,8 @@ protected: /// Returns reactor where this socket is already registered /// for polling, if found; otherwise returns null pointer. { - ReactorVec::iterator it = _reactors.begin(); - ReactorVec::iterator end = _reactors.end(); + typename ReactorVec::iterator it = _reactors.begin(); + typename ReactorVec::iterator end = _reactors.end(); for (; it != end; ++it) { if ((*it)->has(socket)) return it->get(); diff --git a/Net/src/PollSet.cpp b/Net/src/PollSet.cpp index 4e57ec834..dbc613778 100644 --- a/Net/src/PollSet.cpp +++ b/Net/src/PollSet.cpp @@ -114,7 +114,7 @@ public: Poco::FastMutex::ScopedLock lock(_mutex); SocketImpl* sockImpl = socket.impl(); return sockImpl && - (_socketMap.find(sockImpl->sockfd()) != _socketMap.end()); + (_socketMap.find(sockImpl) != _socketMap.end()); } bool empty() const