The single argument true is being converted to the double value 1.0 for the first argument "mean", rather than the third bool arg useKahan as we intended. The output data is consistent with a mean of 1.0. The C++ compiler cares more about argument position than it cares about type (bool vs double).
The single argument
true
is being converted to the double value1.0
for the first argument "mean", rather than the thirdbool
arguseKahan
as we intended. The output data is consistent with a mean of 1.0. The C++ compiler cares more about argument position than it cares about type (bool vs double).