|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81015 - trunk/boost/test/utils
From: jhunold_at_[hidden]
Date: 2012-10-18 16:24:16
Author: jhunold
Date: 2012-10-18 16:24:15 EDT (Thu, 18 Oct 2012)
New Revision: 81015
URL: http://svn.boost.org/trac/boost/changeset/81015
Log:
Fix: guard usage of c++11 <type_traits>
Text files modified:
trunk/boost/test/utils/named_params.hpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/boost/test/utils/named_params.hpp
==============================================================================
--- trunk/boost/test/utils/named_params.hpp (original)
+++ trunk/boost/test/utils/named_params.hpp 2012-10-18 16:24:15 EDT (Thu, 18 Oct 2012)
@@ -344,6 +344,8 @@
struct param_type<nfp_detail::named_parameter_combine<NP,Rest>,Keyword,DefaultType> : param_type<Rest,Keyword,DefaultType> {
};
+#if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
+
template<typename T, typename unique_id, typename ReferenceType,bool required,typename DefaultType>
struct param_type<named_parameter<T,unique_id,ReferenceType>,keyword<unique_id,required>,DefaultType> {
typedef typename std::remove_cv<T>::type type;
@@ -356,6 +358,8 @@
typedef typename std::remove_cv<T>::type type;
};
+#endif
+
} // namespace nfp
} // namespace boost
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk