[Bug libstdc++/49778] Can't take pointer to std::make_pair in c++0x
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 18 16:58:00 GMT 2011
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 ***
More information about the Gcc-bugs
mailing list