1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Take another swing at Qt's ambiguity problem.

This commit is contained in:
Thomas Harte
2025-12-17 12:13:50 -05:00
parent ec06aa45a6
commit 9ed0cc49c0
+3 -2
View File
@@ -220,8 +220,9 @@ public:
prefix += "] ";
}
decltype(stream(true)) out = stream(accumulator_.is_info);
out << prefix << accumulator_.last;
auto &&out = stream(accumulator_.is_info);
out << prefix.c_str() << accumulator_.last.c_str(); // Use of .c_str() avoids an ambiguity affecting older
// versions of Qt.
if(accumulator_.count > 1) {
out << " [* " << accumulator_.count << "]";
}