Try
#include <string>
#include <algorithm>
void my_remove(std::string& s, char a)
{ s.erase(std::remove(s.begin(),s.end(),a),s.end()); }
You can call
my_remove(strSrc,'0xA0');
Basically, the std::remove is a standard algorithm that swap everything is equal to a given value to the end of the container, returning the proposed new end for that container.
The erase method will cat away what is between the new and the old end.