public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/48521] New: [4.5/4.6/4.7 Regression] [C++0x] std::result_of doesn't work with pointer to member
@ 2011-04-08 21:16 redi at gcc dot gnu.org
  2011-04-08 21:16 ` [Bug libstdc++/48521] " redi at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-08 21:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48521

           Summary: [4.5/4.6/4.7 Regression] [C++0x] std::result_of
                    doesn't work with pointer to member
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


This is supposed to work, and did with 4.4:

#include <functional>
struct X
{
  int foo();
};

typedef int (X::*pm)();
std::result_of<pm()>::type i = 0;

This means we don't accept std::async(X::foo, ...) which is defined in terms of
result_of

I think I intentionally removed support for pointers to members from result_of,
because an earlier C++0x draft said it shouldn't work


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-04-23 17:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-08 21:16 [Bug libstdc++/48521] New: [4.5/4.6/4.7 Regression] [C++0x] std::result_of doesn't work with pointer to member redi at gcc dot gnu.org
2011-04-08 21:16 ` [Bug libstdc++/48521] " redi at gcc dot gnu.org
2011-04-09 10:55 ` redi at gcc dot gnu.org
2011-04-16 19:53 ` redi at gcc dot gnu.org
2011-04-16 23:12 ` paolo.carlini at oracle dot com
2011-04-17 20:28 ` redi at gcc dot gnu.org
2011-04-18 21:44 ` redi at gcc dot gnu.org
2011-04-19 13:26 ` redi at gcc dot gnu.org
2011-04-19 13:28 ` [Bug libstdc++/48521] [4.5/4.6 " redi at gcc dot gnu.org
2011-04-23 17:51 ` redi at gcc dot gnu.org
2011-04-23 17:55 ` [Bug libstdc++/48521] [4.5 " redi at gcc dot gnu.org

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).