+2004-06-25 Paolo Carlini <pcarlini@suse.de>
+
+ * include/bits/stl_algobase.h (fill, fill_n): Revert last
+ change: actually we need to copy construct an object of type
+ _Tp, not of type iterator_traits<>::value_type, therefore the
+ code is ok.
+
2004-06-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algobase.h (fill, fill_n): Tighten the
_ForwardIterator>)
__glibcxx_requires_valid_range(__first, __last);
- typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType;
- typedef typename __type_traits<_ValueType>::has_trivial_copy_constructor
+ typedef typename __type_traits<_Tp>::has_trivial_copy_constructor
_Trivial;
std::__fill<_Trivial>::fill(__first, __last, __value);
}
// concept requirements
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator, _Tp>)
- typedef typename iterator_traits<_OutputIterator>::value_type _ValueType;
- typedef typename __type_traits<_ValueType>::has_trivial_copy_constructor
+ typedef typename __type_traits<_Tp>::has_trivial_copy_constructor
_Trivial;
return std::__fill_n<_Trivial>::fill_n(__first, __n, __value);
}