This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]