diff options
author | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-17 23:11:28 +0000 |
---|---|---|
committer | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-17 23:11:28 +0000 |
commit | 264c399ee322553aad0bc598b3ed148cb1371357 (patch) | |
tree | f4622fb49c05bb5b6720b25a17a91103d699f042 /libstdc++-v3 | |
parent | c39fe2c980f170c322315378fb84dd2d140dd0f0 (diff) | |
download | gcc-264c399ee322553aad0bc598b3ed148cb1371357.tar.gz |
2001-04-17 Phil Edwards <pme@sources.redhat.com>
* include/bits/stl_algo.h (std::transform): Disable the check
on _OutputIter for now.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41393 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/include/bits/stl_algo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h index 721d9aae950..43537248448 100644 --- a/libstdc++-v3/include/bits/stl_algo.h +++ b/libstdc++-v3/include/bits/stl_algo.h @@ -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); |