stl_algo.h (std::transform): Disable the check on _OutputIter for now.
authorPhil Edwards <pme@gcc.gnu.org>
Tue, 17 Apr 2001 23:11:28 +0000 (23:11 +0000)
committerPhil Edwards <pme@gcc.gnu.org>
Tue, 17 Apr 2001 23:11:28 +0000 (23:11 +0000)
2001-04-17  Phil Edwards  <pme@sources.redhat.com>

* include/bits/stl_algo.h (std::transform):  Disable the check
on _OutputIter for now.

From-SVN: r41393

libstdc++-v3/include/bits/stl_algo.h

index 721d9aae950fe01385e9f76c2f2fc1b3ada040d6..43537248448c09f4a798d7c58c449a9f0be69ba4 100644 (file)
@@ -533,8 +533,11 @@ _OutputIter transform(_InputIter __first, _InputIter __last,
 {
   // concept requirements
   __glibcpp_function_requires(_InputIteratorConcept<_InputIter>);
+/* XXX
   __glibcpp_function_requires(_OutputIteratorConcept<_OutputIter,
+        // should be "the type returned by _UnaryOperation"
         typename iterator_traits<_InputIter>::value_type>);
+*/
 
   for ( ; __first != __last; ++__first, ++__result)
     *__result = __unary_op(*__first);
@@ -550,9 +553,11 @@ _OutputIter transform(_InputIter1 __first1, _InputIter1 __last1,
   // concept requirements
   __glibcpp_function_requires(_InputIteratorConcept<_InputIter1>);
   __glibcpp_function_requires(_InputIteratorConcept<_InputIter2>);
+/* XXX
   __glibcpp_function_requires(_OutputIteratorConcept<_OutputIter,
-        // XXX really should be "the type returned by _BinaryOperation"
+        // should be "the type returned by _BinaryOperation"
         typename iterator_traits<_InputIter1>::value_type>);
+*/
 
   for ( ; __first1 != __last1; ++__first1, ++__first2, ++__result)
     *__result = __binary_op(*__first1, *__first2);