@philippefoubert, the `cv::String` was introduced to replace `std::string`, so when making a new code or modifying the existing it's highly recommended to use `cv::String`.
But I wonder, why do you add `std::` in so many places instead of adding `using namespace std;` ?