Error on TNonblockingServer constructor ---------------------------------------
Key: THRIFT-1573 URL: https://issues.apache.org/jira/browse/THRIFT-1573 Project: Thrift Issue Type: Bug Components: C++ - Library Affects Versions: 0.8 Reporter: Denis If the TNonblockingServer is to construct: TNonblockingServer server(processorFactory, protocolFactory, port, threadManager); the compiler generates an error: error C2664: apache::thrift::server::TServer::TServer(const apache::thrift::server::TServer &): cannot convert parameter 1 from "const boost::shared_ptr<T>" to "const apache::thrift::server::TServer &" e:\develop\cpp\lib\thrift\src\server\tnonblockingserver.h 264 because that TServer class does not contain a constructor: TServer(processorFactory) as in the template: template<typename ProcessorFactory> TNonblockingServer( const boost::shared_ptr<ProcessorFactory>& processorFactory, const boost::shared_ptr<TProtocolFactory>& protocolFactory, int port, const boost::shared_ptr<ThreadManager>& threadManager = boost::shared_ptr<ThreadManager>(), THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory)) : TServer(processorFactory) { init(port); setInputProtocolFactory(protocolFactory); setOutputProtocolFactory(protocolFactory); setThreadManager(threadManager); } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira