I've included <algorithm>...
normally it should remove all elements that are equal to the number from the vector ... I don^t get any compile errors but it seemply doesn't remove them.Code:void operator-(double number){ remove(doublevector.begin(), doublevector.end(), number); }