I tested this with another compiler, and got the same result as
Steven - the "Locale" destructor was getting called immediately after
the constructor, rather than at the end of the block. I still think
that this is a compiler bug, but because it appears to be common,
I've decided to change all
Op 6 feb 2009, om 11:14 heeft Ross Finlayson het volgende geschreven:
my system is apparently not using a US locale. This affected the
generated range string (replaced dots by comma's). Fixed this by
explicitly scoping the locale with a local variable.
In that case, the 'bug' is probably i
my system is apparently not using a US locale. This affected the
generated range string (replaced dots by comma's). Fixed this by
explicitly scoping the locale with a local variable.
In that case, the 'bug' is probably in your compiler, not our code.
Is anyone else ancountering this problem?
-
Hi,
my system is apparently not using a US locale. This affected the
generated range string (replaced dots by comma's). Fixed this by
explicitly scoping the locale with a local variable.
I.e., in createRangeString I replaced
Locale ("C", LC_NUMERIC);
with
Locale locale ("C", LC_NUMERIC)