I have a project that has an object that inherits from TCPSocket. All of my calls to TCPSocket::isPending fail to compile. The definition of isPending in the TCPSocket header looks like:<br><blockquote>inline bool isPending(timeout_t timeout = TIMEOUT_INF)</blockquote><br>When I try to compile a call with only the timeout argument I get the following error:<br><blockquote>no matching function for call to 'TCPSocket::isPending(timeout_t)'<br>candidates are: cc_Socket::isPending(sockpend_t, timeout_t)</blockquote><br>So I add in the sockpend_t argument and I get an error message that looks like this:<br><blockquote>bool cc_Socket::isPending(enum sockpend_t, timeout_t) is from private base class</blockquote><br>I think this is a bug. I also noticed that the tcpthread demo in the demo directory fails to compile with the same errors.<br><blockquote>-><a href="mailto:huseby@shockfusion.com">Dave</a></blockquote>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2000-11-21
Damn, I just noticed why my message is all messed up...sorry. Here's the post in the correct format:
I have a project that has an object that inherits from TCPSocket. All of my calls to TCPSocket::isPending fail to compile. The definition of isPending in the TCPSocket header looks like:
I have a project that has an object that inherits from TCPSocket. All of my calls to TCPSocket::isPending fail to compile. The definition of isPending in the TCPSocket header looks like:<br><blockquote>inline bool isPending(timeout_t timeout = TIMEOUT_INF)</blockquote><br>When I try to compile a call with only the timeout argument I get the following error:<br><blockquote>no matching function for call to 'TCPSocket::isPending(timeout_t)'<br>candidates are: cc_Socket::isPending(sockpend_t, timeout_t)</blockquote><br>So I add in the sockpend_t argument and I get an error message that looks like this:<br><blockquote>bool cc_Socket::isPending(enum sockpend_t, timeout_t) is from private base class</blockquote><br>I think this is a bug. I also noticed that the tcpthread demo in the demo directory fails to compile with the same errors.<br><blockquote>-><a href="mailto:huseby@shockfusion.com">Dave</a></blockquote>
Damn, I just noticed why my message is all messed up...sorry. Here's the post in the correct format:
I have a project that has an object that inherits from TCPSocket. All of my calls to TCPSocket::isPending fail to compile. The definition of isPending in the TCPSocket header looks like:
inline bool isPending(timeout_t timeout = TIMEOUT_INF)
When I try to compile a call with only the timeout argument I get the following error:
no matching function for call to 'TCPSocket::isPending(timeout_t)'
candidates are: cc_Socket::isPending(sockpent_t, timeout_t)
So I add in the sockpend_t argument and I get an error message that looks like this:
bool cc_Socket::isPending(enum sockpend_t, timeout_t) is from private base class
I think this is a bug. I also noticed that the tcpthread demo in the demo directory fails to compile with the same errors.
-> Dave
email responses to huseby@shockfusion.com
I'm having the same problems under Solaris 7.
After searching through the libcxx symbols I failed to find one
for TCPSocket.isPending....
Can this be due to its inline declaration?
If so, are there any compiler switches or something else that would make the problem go away?
Thank you
Alwyn Schoeman