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 c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F)


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?


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