Commit 2c10fa49 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[2312] Add std namespace before distance.

If omitted the build fails on Solaris complaining that distance is unknown.
parent c3e696cb
......@@ -334,8 +334,9 @@ std::string OptionCustom::toText(int indent) {
for (int j = 0; j < indent + 2; ++j) {
tmp << " ";
}
tmp << "#" << distance(fields.begin(), field) << " "
<< dataFieldToText(*field, distance(fields.begin(), field))
tmp << "#" << std::distance(fields.begin(), field) << " "
<< dataFieldToText(*field, std::distance(fields.begin(),
field))
<< std::endl;
}
} else {
......
Supports Markdown
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