1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
$ g++ main.cpp bar.cpp -o main
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h: In function `_OutputIterator std::remove_copy_if(_InputIterator, _InputIterator, _OutputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<FooPtr*, std::vector<FooPtr, std::allocator<FooPtr> > >, _OutputIterator = __gnu_cxx::__normal_iterator<FooPtr*, std::vector<FooPtr, std::allocator<FooPtr> > >, _Predicate = bool (Bar::*)(FooPtr)]':
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:1147: instantiated from `_ForwardIterator std::remove_if(_ForwardIterator, _ForwardIterator, _Predicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator<FooPtr*, std::vector<FooPtr, std::allocator<FooPtr> > >, _Predicate = bool (Bar::*)(FooPtr)]'
bar.cpp:29: instantiated from here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:1074: error: must use .* or ->* to call pointer-to-member function in `__pred (...)'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h: In function `_RandomAccessIterator std::find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<FooPtr*, std::vector<FooPtr, std::allocator<FooPtr> > >, _Predicate = bool (Bar::*)(FooPtr)]':
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:336: instantiated from `_InputIterator std::find_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<FooPtr*, std::vector<FooPtr, std::allocator<FooPtr> > >, _Predicate = bool (Bar::*)(FooPtr)]'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:1145: instantiated from `_ForwardIterator std::remove_if(_ForwardIterator, _ForwardIterator, _Predicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator<FooPtr*, std::vector<FooPtr, std::allocator<FooPtr> > >, _Predicate = bool (Bar::*)(FooPtr)]'
bar.cpp:29: instantiated from here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:259: error: must use .* or ->* to call pointer-to-member function in `__pred (...)'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:263: error: must use .* or ->* to call pointer-to-member function in `__pred (...)'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:267: error: must use .* or ->* to call pointer-to-member function in `__pred (...)'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:271: error: must use .* or ->* to call pointer-to-member function in `__pred (...)'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:336: instantiated from `_InputIterator std::find_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<FooPtr*, std::vector<FooPtr, std::allocator<FooPtr> > >, _Predicate = bool (Bar::*)(FooPtr)]'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:1145: instantiated from `_ForwardIterator std::remove_if(_ForwardIterator, _ForwardIterator, _Predicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator<FooPtr*, std::vector<FooPtr, std::allocator<FooPtr> > >, _Predicate = bool (Bar::*)(FooPtr)]'
bar.cpp:29: instantiated from here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:279: error: must use .* or ->* to call pointer-to-member function in `__pred (...)'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:283: error: must use .* or ->* to call pointer-to-member function in `__pred (...)'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:287: error: must use .* or ->* to call pointer-to-member function in `__pred (...)'
|