hi,there,
In the TcpEndpoint.cpp file,
AcceptorPtr
IceInternal::TcpEndpoint::acceptor(EndpointPtr& endp) const
{
TcpAcceptor* p = new TcpAcceptor(_instance, _host, _port);
------------- ?????-------------------------------------------
endp = new TcpEndpoint(_instance, _host, p->effectivePort(), _timeout, _compress);
---------------------------------------------------------
return p;
}
I can't understand the lines with "new" . why need such codes?Consideration for reference number of smart pointer?
sorry for this trivial question.
Thanks in advance.

Consideration for reference number of smart pointer?
Reply With Quote
