This is the mail archive of the gcc-bugs@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]

[Bug libstdc++/49778] Can't take pointer to std::make_pair in c++0x


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 ***


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