public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] Add missing C++0x pair constructor
@ 2007-11-11 23:13 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2007-11-11 23:13 UTC (permalink / raw)
  To: Gcc Patch List

[-- Attachment #1: Type: text/plain, Size: 77 bytes --]

Hi,

tested x86_64-linux, committed to mainline.

Paolo.

/////////////////


[-- Attachment #2: CL_pair_hh --]
[-- Type: text/plain, Size: 129 bytes --]

2007-11-11  Howard Hinnant  <hhinnant@apple.com>

	* include/bits/stl_pair.h (pair<>::pair<>(_U1&&, _Arg0&&,
	_Args&&...)): Add.

[-- Attachment #3: patch_pair_hh --]
[-- Type: text/plain, Size: 631 bytes --]

Index: include/bits/stl_pair.h
===================================================================
--- include/bits/stl_pair.h	(revision 130083)
+++ include/bits/stl_pair.h	(working copy)
@@ -111,6 +111,13 @@
 	: first(std::move(__p.first)),
 	  second(std::move(__p.second)) { }
 
+      // http://gcc.gnu.org/ml/libstdc++/2007-08/msg00052.html
+      template<class _U1, class _Arg0, class... _Args>
+        pair(_U1&& __x, _Arg0&& __arg0, _Args&&... __args)
+	: first(std::forward<_U1>(__x)),
+	  second(std::forward<_Arg0>(__arg0),
+		 std::forward<_Args>(__args)...) { }
+
       pair&
       operator=(pair&& __p)
       { 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-11 15:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-11 23:13 [v3] Add missing C++0x pair constructor Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).