mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-03 07:10:28 +08:00
forward_list.h (forward_list<>::resize(size_type, value_type)): Fix signature, per LWG 1340.
2010-09-13 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/forward_list.h (forward_list<>::resize(size_type, value_type)): Fix signature, per LWG 1340. * include/bits/forward_list.tcc: Adjust definition. From-SVN: r164249
This commit is contained in:
parent
fe09341996
commit
ac42c96090
@ -1,3 +1,9 @@
|
||||
2010-09-13 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/bits/forward_list.h (forward_list<>::resize(size_type,
|
||||
value_type)): Fix signature, per LWG 1340.
|
||||
* include/bits/forward_list.tcc: Adjust definition.
|
||||
|
||||
2010-09-13 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* testsuite/27_io/basic_filebuf/seekoff/char/4.cc: New.
|
||||
|
@ -1002,7 +1002,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
* populated with given data.
|
||||
*/
|
||||
void
|
||||
resize(size_type __sz, value_type __val);
|
||||
resize(size_type __sz, const value_type& __val);
|
||||
|
||||
/**
|
||||
* @brief Erases all the elements.
|
||||
|
@ -201,7 +201,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
template<typename _Tp, typename _Alloc>
|
||||
void
|
||||
forward_list<_Tp, _Alloc>::
|
||||
resize(size_type __sz, value_type __val)
|
||||
resize(size_type __sz, const value_type& __val)
|
||||
{
|
||||
iterator __k = before_begin();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user