This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F)
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 5 Jun 2011 15:07:03 +0000
- Subject: [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F)
- Auto-submitted: auto-generated
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?