From 3f92af9d956c7735239d069781d8481dd0127dbd Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 20 Feb 2014 13:17:50 +0000 Subject: [PATCH] Fix msvc-11 and 12 failures. Mark library as deprecated. --- doc/tr1.qbk | 4 ++++ include/boost/tr1/detail/config.hpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/tr1.qbk b/doc/tr1.qbk index 3eda8f5..a53ec2d 100644 --- a/doc/tr1.qbk +++ b/doc/tr1.qbk @@ -12,6 +12,10 @@ ] [section:intro Introduction] + +[important This library is deprecated in favor of native C++11 standard library features, as a result +it receives little or no maintenance.] + The TR1 library provides an implementation of the C++ Technical Report on Standard Library Extensions. This library does not itself implement the TR1 components, rather it's a thin wrapper that will include your standard library's TR1 implementation (if it has one), otherwise it will include the Boost diff --git a/include/boost/tr1/detail/config.hpp b/include/boost/tr1/detail/config.hpp index 7b8505f..42069dd 100644 --- a/include/boost/tr1/detail/config.hpp +++ b/include/boost/tr1/detail/config.hpp @@ -138,7 +138,7 @@ // this here, in addition the feature pack for VC9 // provides a more or less full TR1 implementation: // -# if defined(_HAS_TR1) && (_HAS_TR1 + 0) +# if (defined(_HAS_TR1) && (_HAS_TR1 + 0)) || (_CPPLIB_VER >= 540) # define BOOST_HAS_TR1_ARRAY # define BOOST_HAS_TR1_REFERENCE_WRAPPER # define BOOST_HAS_TR1_RESULT_OF