Commit d8c6d067 authored by Alexander Alekhin's avatar Alexander Alekhin

build: fix build with GCC 4.8

parent e8916dae
......@@ -31,20 +31,25 @@ int main(int argc, char *argv[])
std::string path = string(argv[4]);
//Parse the scaling factors
std::stringstream ss(scales_str);
std::vector<int> scales;
std::string token;
char delim = ',';
{
std::stringstream ss(scales_str);
std::string token;
while (std::getline(ss, token, delim)) {
scales.push_back(atoi(token.c_str()));
}
}
//Parse the output node names
ss = std::stringstream(output_names_str);
std::vector<String> node_names;
{
std::stringstream ss(output_names_str);
std::string token;
while (std::getline(ss, token, delim)) {
node_names.push_back(token);
}
}
// Load the image
Mat img = cv::imread(img_path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment