From: Paolo Carlini Date: Tue, 9 Oct 2007 17:17:33 +0000 (+0000) Subject: type_traitsfwd.h (add_reference): Remove. X-Git-Tag: releases/gcc-4.3.0~2138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=beb1b4758749b66726f2221959408e9170f18c08;p=thirdparty%2Fgcc.git type_traitsfwd.h (add_reference): Remove. 2007-10-09 Paolo Carlini * include/tr1_impl/type_traitsfwd.h (add_reference): Remove. * include/tr1/type_traits (add_reference): Add forward declaration. * include/tr1_impl/functional (class _Mu<>): Fix. From-SVN: r129171 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 03972e033705..f09d71ec1cea 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2007-10-09 Paolo Carlini + + * include/tr1_impl/type_traitsfwd.h (add_reference): Remove. + * include/tr1/type_traits (add_reference): Add forward declaration. + * include/tr1_impl/functional (class _Mu<>): Fix. + 2007-10-09 Paolo Carlini * include/bits/boost_concept_check.h (*AssociativeContainerConcept): diff --git a/libstdc++-v3/include/tr1/type_traits b/libstdc++-v3/include/tr1/type_traits index be73fe77460b..c8376ad02aae 100644 --- a/libstdc++-v3/include/tr1/type_traits +++ b/libstdc++-v3/include/tr1/type_traits @@ -170,6 +170,9 @@ namespace tr1 static const bool __value = sizeof(__test(__makeFrom())) == 1; }; + template + struct add_reference; + template struct __is_int_or_cref { diff --git a/libstdc++-v3/include/tr1_impl/functional b/libstdc++-v3/include/tr1_impl/functional index 0005dfcc0d0c..3c3e18aa9379 100644 --- a/libstdc++-v3/include/tr1_impl/functional +++ b/libstdc++-v3/include/tr1_impl/functional @@ -1149,7 +1149,11 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 __base_type; public: +#ifdef _GLIBCXX_INCLUDE_AS_CXX0X + typedef typename add_lvalue_reference<__base_type>::type type; +#else typedef typename add_reference<__base_type>::type type; +#endif }; template @@ -1177,7 +1181,11 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 template struct result<_CVMu(_CVArg, _Tuple)> { +#ifdef _GLIBCXX_INCLUDE_AS_CXX0X + typedef typename add_lvalue_reference<_CVArg>::type type; +#else typedef typename add_reference<_CVArg>::type type; +#endif }; // Pick up the cv-qualifiers of the argument diff --git a/libstdc++-v3/include/tr1_impl/type_traitsfwd.h b/libstdc++-v3/include/tr1_impl/type_traitsfwd.h index 63db0cb8f6dc..558f110dc4a9 100644 --- a/libstdc++-v3/include/tr1_impl/type_traitsfwd.h +++ b/libstdc++-v3/include/tr1_impl/type_traitsfwd.h @@ -153,9 +153,6 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 template struct remove_reference; - template - struct add_reference; - /// @brief array modifications [4.7.3]. template struct remove_extent;