re PR libstdc++/23358 (_Destroy doesn't optimize for scalar types)

2005-08-23  Thomas Kho  <tkho@ucla.edu>

	PR libstdc++/23358
	* include/bits/stl_construct.h (_Destroy(_ForwardIterator,
	_ForwardIterator, allocator<_Tp>)): Removed unused template parameter.

From-SVN: r103393
This commit is contained in:
Thomas Kho 2005-08-23 10:40:14 +00:00 committed by Paolo Carlini
parent 37b8a73b50
commit 9191d64118
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-08-23 Thomas Kho <tkho@ucla.edu>
PR libstdc++/23358
* include/bits/stl_construct.h (_Destroy(_ForwardIterator,
_ForwardIterator, allocator<_Tp>)): Removed unused template parameter.
2005-08-22 Geoffrey Keating <geoffk@apple.com>
* testsuite/23_containers/vector/resize/1.cc: XFAIL on darwin8.

View File

@ -174,7 +174,7 @@ namespace std
__alloc.destroy(&*__first);
}
template<typename _ForwardIterator, typename _Allocator, typename _Tp>
template<typename _ForwardIterator, typename _Tp>
inline void
_Destroy(_ForwardIterator __first, _ForwardIterator __last,
allocator<_Tp>)