Why is this no longer const? Seems a bad idea to return information via this parameter.
If you want to return the filtered list, I think it should be a return parameter, and if that isn't necessary, it's better to take a copy of the list inside the function so it can be manipulated.