Original Post
My compiler seems to be picking up std::remove in rather than . The relevant code is basically: It tells me extra paramters in call std::remove(const char *). If I try: it tells me invalid use of typedef std::vector::iterator and expression syntax presumably due to still hitting std::remove in . Anyone see something I'm going wrong or have any suggestions for a work around? is included, no errors on remove_if. I don't directly include and I assume it is being brought in with . Grrr, why's it doing that to me . Grrr, grrr, figures now it quits.
std::vector<int> col1;
std::vector<int>::iterator pos;
// elements loaded here
pos = std::remove(col1.begin(), col1.end(), 5);
std::vector<int> col1;
std::vector<int>::iterator pos;
// elements loaded here
pos = std::remove<std::vector<int>::iterator, int>
(col1.begin(), col1.end(), 5);