| diff --git a/build/cmake/DefinePlatformSpecifc.cmake b/build/cmake/DefinePlatformSpecifc.cmake |
| index 40ec627..dd77fde 100755 |
| --- a/build/cmake/DefinePlatformSpecifc.cmake |
| +++ b/build/cmake/DefinePlatformSpecifc.cmake |
| @@ -84,11 +84,11 @@ endif() |
| # GCC and Clang. |
| if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| # FIXME -pedantic can not be used at the moment because of: https://issues.apache.org/jira/browse/THRIFT-2784 |
| - #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -Wall -Wextra -pedantic") |
| + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -Wall -Wextra") |
| # FIXME enabling c++11 breaks some Linux builds on Travis by triggering a g++ bug, see |
| # https://travis-ci.org/apache/thrift/jobs/58017022 |
| # on the other hand, both MacOSX and FreeBSD need c++11 |
| - if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") |
| - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -Wall -Wextra") |
| - endif() |
| + #if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") |
| + # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -Wall -Wextra") |
| + #endif() |
| endif() |
| diff --git a/lib/cpp/src/thrift/cxxfunctional.h b/lib/cpp/src/thrift/cxxfunctional.h |
| index dadaac3..ef32fe1 100644 |
| --- a/lib/cpp/src/thrift/cxxfunctional.h |
| +++ b/lib/cpp/src/thrift/cxxfunctional.h |
| @@ -105,19 +105,19 @@ |
| }}} // apache::thrift::stdcxx |
| |
| #elif _THRIFT_USING_GNU_LIBSTDCXX |
| - #include <tr1/functional> |
| + #include <functional> |
| |
| namespace apache { namespace thrift { namespace stdcxx { |
| - using ::std::tr1::function; |
| - using ::std::tr1::bind; |
| + using ::std::function; |
| + using ::std::bind; |
| |
| namespace placeholders { |
| - using ::std::tr1::placeholders::_1; |
| - using ::std::tr1::placeholders::_2; |
| - using ::std::tr1::placeholders::_3; |
| - using ::std::tr1::placeholders::_4; |
| - using ::std::tr1::placeholders::_5; |
| - using ::std::tr1::placeholders::_6; |
| + using ::std::placeholders::_1; |
| + using ::std::placeholders::_2; |
| + using ::std::placeholders::_3; |
| + using ::std::placeholders::_4; |
| + using ::std::placeholders::_5; |
| + using ::std::placeholders::_6; |
| } // apache::thrift::stdcxx::placeholders |
| }}} // apache::thrift::stdcxx |
| #endif |