[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
gcc-bugzilla@gcc.gnu.org
Sun Jun 5 15:07:00 GMT 2011
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?
More information about the Gcc-bugs
mailing list