THRIFT-1837 Deploy and use cxxfunctional.h in cpp code generated in cob_style mode
authorRoger Meier <roger@apache.org>
Tue, 22 Jan 2013 20:36:42 +0000 (21:36 +0100)
committerRoger Meier <roger@apache.org>
Tue, 22 Jan 2013 20:36:42 +0000 (21:36 +0100)
Patch: Nate Rosenblum

compiler/cpp/src/generate/t_cpp_generator.cc
lib/cpp/Makefile.am

index d75b7de..34a112d 100644 (file)
@@ -1592,7 +1592,7 @@ void t_cpp_generator::generate_service(t_service* tservice) {
   if (gen_cob_style_) {
     f_header_ <<
       "#include <thrift/transport/TBufferTransports.h>" << endl << // TMemoryBuffer
-      "#include <tr1/functional>" << endl <<
+      "#include <thrift/cxxfunctional.h>" << endl <<
       "namespace apache { namespace thrift { namespace async {" << endl <<
       "class TAsyncChannel;" << endl <<
       "}}}" << endl;
index 4a7ef83..f40cdb1 100755 (executable)
@@ -128,7 +128,8 @@ include_thrift_HEADERS = \
                          src/thrift/TReflectionLocal.h \
                          src/thrift/TProcessor.h \
                          src/thrift/TApplicationException.h \
-                         src/thrift/TLogging.h
+                         src/thrift/TLogging.h \
+                         src/thrift/cxxfunctional.h
 
 include_concurrencydir = $(include_thriftdir)/concurrency
 include_concurrency_HEADERS = \