public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F)
@ 2011-06-05 15:07 pluto at agmk dot net
  2011-06-05 15:15 ` [Bug c++/49291] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pluto at agmk dot net @ 2011-06-05 15:07 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: error: no matching function for call to
                    std::list<std::tr1::shared_ptr<B>
                    >::remove_if(A::release(B*)::F)
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pluto@agmk.net


Created attachment 24438
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24438
testcase

compiling with gnu++0x works fine while gnu++98 ends with error:

$ g++ 0.cpp -c -std=gnu++98
0.cpp: In member function ‘void A::release(B*)’:
0.cpp:20:20: error: no matching function for call to
‘std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F)’


struct F looks like a nice functor, so where is the problem?


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

end of thread, other threads:[~2011-06-05 17:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-05 15:07 [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) pluto at agmk dot net
2011-06-05 15:15 ` [Bug c++/49291] " redi at gcc dot gnu.org
2011-06-05 15:18 ` redi at gcc dot gnu.org
2011-06-05 15:26 ` pluto at agmk dot net
2011-06-05 17:32 ` 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).