Commit 03de84fa authored by Davis King's avatar Davis King

Made a minor change which apparently avoids a bug in gcc 5.4.2 on Ubuntu 11.04.

parent f918e2a3
...@@ -547,7 +547,10 @@ namespace dlib ...@@ -547,7 +547,10 @@ namespace dlib
for (unsigned long k = 0; k < num; ++k) for (unsigned long k = 0; k < num; ++k)
{ {
string_type name; string_type name;
name = temp[k]; // Doing this instead of name = temp[k] seems to avoid a bug in g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
// which results in name[0] having the wrong value.
name.resize(1);
name[0] = temp[k];
// make sure this name is defined // make sure this name is defined
......
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