This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49778] Can't take pointer to std::make_pair in c++0x
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Jul 2011 16:58:35 +0000
- Subject: [Bug libstdc++/49778] Can't take pointer to std::make_pair in c++0x
- Auto-submitted: auto-generated
- References: <bug-49778-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49778
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-18 16:57:38 UTC ---
The C++0x std::make_pair is slightly different, there is very little we can do
at the implementation level. Anyway, I would probably use a lambda in such
cases, like: [] (int f, int s) { return std::make_pair(f, s); }
*** This bug has been marked as a duplicate of bug 43785 ***