S
silverburgh.meryl
Hi,
I have this piece of code which calls STL remove():
_aList.erase(remove(_aList.begin(), _aList.end(), bd), _aList.end());
where _aList is a 'vector<A*>' and bd is 'A*'
But i get this compile error:
Test.cpp:199: error: no matching function for call to
'Test::remove(__gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > >, __gnu_cxx::__normal_iterator<A**,
std::vector<A*, std::allocator<A*> > >, A*&)'
And I have this in my Test.cpp file:
#include <algorithm>
#include <functional>
#include <numeric>
using namespace std;
Thanks for any help
I have this piece of code which calls STL remove():
_aList.erase(remove(_aList.begin(), _aList.end(), bd), _aList.end());
where _aList is a 'vector<A*>' and bd is 'A*'
But i get this compile error:
Test.cpp:199: error: no matching function for call to
'Test::remove(__gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > >, __gnu_cxx::__normal_iterator<A**,
std::vector<A*, std::allocator<A*> > >, A*&)'
And I have this in my Test.cpp file:
#include <algorithm>
#include <functional>
#include <numeric>
using namespace std;
Thanks for any help