diff options
author | Roger Meier <roger@apache.org> | 2013-11-16 16:43:41 +0100 |
---|---|---|
committer | Roger Meier <roger@apache.org> | 2013-11-16 16:43:41 +0100 |
commit | 5f2d34e5ab33651059a085525b3adbab6a877e6f (patch) | |
tree | 631ee831c195962450a7e9e80b7a758241154e2d /tutorial/cpp | |
parent | 3da1c9025b77f5ca3ba4c296b8ab3089235b9c3b (diff) | |
download | thrift-5f2d34e5ab33651059a085525b3adbab6a877e6f.tar.gz |
THRIFT-2229 thrift failed to build on OSX 10.9 GM
Diffstat (limited to 'tutorial/cpp')
-rw-r--r-- | tutorial/cpp/CppClient.cpp | 6 | ||||
-rw-r--r-- | tutorial/cpp/CppServer.cpp | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/tutorial/cpp/CppClient.cpp b/tutorial/cpp/CppClient.cpp index ba71caa88..b91df2e41 100644 --- a/tutorial/cpp/CppClient.cpp +++ b/tutorial/cpp/CppClient.cpp @@ -38,9 +38,9 @@ using namespace shared; using namespace boost; int main(int argc, char** argv) { - shared_ptr<TTransport> socket(new TSocket("localhost", 9090)); - shared_ptr<TTransport> transport(new TBufferedTransport(socket)); - shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport)); + boost::shared_ptr<TTransport> socket(new TSocket("localhost", 9090)); + boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket)); + boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport)); CalculatorClient client(protocol); try { diff --git a/tutorial/cpp/CppServer.cpp b/tutorial/cpp/CppServer.cpp index d0dbad9ff..f19258c85 100644 --- a/tutorial/cpp/CppServer.cpp +++ b/tutorial/cpp/CppServer.cpp @@ -113,11 +113,11 @@ protected: int main(int argc, char **argv) { - shared_ptr<TProtocolFactory> protocolFactory(new TBinaryProtocolFactory()); - shared_ptr<CalculatorHandler> handler(new CalculatorHandler()); - shared_ptr<TProcessor> processor(new CalculatorProcessor(handler)); - shared_ptr<TServerTransport> serverTransport(new TServerSocket(9090)); - shared_ptr<TTransportFactory> transportFactory(new TBufferedTransportFactory()); + boost::shared_ptr<TProtocolFactory> protocolFactory(new TBinaryProtocolFactory()); + boost::shared_ptr<CalculatorHandler> handler(new CalculatorHandler()); + boost::shared_ptr<TProcessor> processor(new CalculatorProcessor(handler)); + boost::shared_ptr<TServerTransport> serverTransport(new TServerSocket(9090)); + boost::shared_ptr<TTransportFactory> transportFactory(new TBufferedTransportFactory()); TSimpleServer server(processor, serverTransport, @@ -128,10 +128,10 @@ int main(int argc, char **argv) { /** * Or you could do one of these - shared_ptr<ThreadManager> threadManager = + boost::shared_ptr<ThreadManager> threadManager = ThreadManager::newSimpleThreadManager(workerCount); - shared_ptr<PosixThreadFactory> threadFactory = - shared_ptr<PosixThreadFactory>(new PosixThreadFactory()); + boost::shared_ptr<PosixThreadFactory> threadFactory = + boost::shared_ptr<PosixThreadFactory>(new PosixThreadFactory()); threadManager->threadFactory(threadFactory); threadManager->start(); TThreadPoolServer server(processor, |