I've recently coded a solution to the StringCalculator kata in C++ using GoogleMock, (you can check its code in GitHub).In one of the refactoring steps, I extracted the code that filters out not numeric tokens to a separated helper method: filterOutNotNumericTokens:Once all the kata requirements were satisfied, I refactored this method a little bit more using C++11 copy_if algorithm:We can use the same technique to refactor the method that ignores numbers greater than 1000, ignoreTooBig, from th...