I looked up how I can pass thread arguments by reference and I found std::ref so I used that:
std::ref
void Watermarker::markDirectory(const std::string&