This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Fix trivial typos
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 08 Nov 2007 12:12:35 +0100
- Subject: [v3] Fix trivial typos
Hi,
tested x86_64-linux, committed to mainline.
Paolo.
///////////////
2007-11-08 Paolo Carlini <pcarlini@suse.de>
* include/debug/vector (push_back, emplace): Fix signature typo.
Index: include/debug/vector
===================================================================
--- include/debug/vector (revision 129993)
+++ include/debug/vector (working copy)
@@ -291,7 +291,7 @@
#else
template<typename... _Args>
void
- push_back(_Args... __args)
+ push_back(_Args&&... __args)
{
bool __realloc = _M_requires_reallocation(this->size() + 1);
_Base::push_back(std::forward<_Args>(__args)...);
@@ -313,7 +313,7 @@
#ifdef __GXX_EXPERIMENTAL_CXX0X__
template<typename... _Args>
iterator
- emplace(iterator __position, _Args... __args)
+ emplace(iterator __position, _Args&&... __args)
{
__glibcxx_check_insert(__position);
bool __realloc = _M_requires_reallocation(this->size() + 1);