Hallo, ich habe ein Problem mit ost::TCPStream::sync.
und zwar habe ich eine Klasse COnnection:
Code:
class connection : public TCPSession
//C'Tor
connection::connection(TCPSocket &serv):
TCPSession(serv, 1024, 0)
{
}
und wenn ich jetzt in dieser Klasse
mache, dann sagt mir der compiler:
connection.cpp: In member function `void connection::close()':
connection.cpp:85: error: request for member `sync' is ambiguous
/usr/include/cc++2/cc++/thread.h:1183: error: candidates are: void ost::Thread::sync()
/usr/include/cc++2/cc++/socket.h:1637: error: virtual int ost::TCPStream::sync()
connection.cpp: In member function `bool connection::send(const std::string&)':
connection.cpp:97: error: request for member `sync' is ambiguous
/usr/include/cc++2/cc++/thread.h:1183: error: candidates are: void ost::Thread::sync()
/usr/include/cc++2/cc++/socket.h:1637: error: virtual int ost::TCPStream::sync()
make: *** [connection.o] Error 1
Wie mach ich das richtig?
this->ost::TCPStream::sync(); löst das problem.
Lesezeichen