This fixes the compilation error that occurs with the current version:
error: definition of implicit copy constructor for 'HasSubstrMatcher<std::string>' is deprecated because it has a user-
declared copy assignment operator [-Werror,-Wdeprecated-copy]
This fixes the compilation error that occurs with the current version: