diff options
author | alexzhornyak <alexander.zhornyak@gmail.com> | 2017-06-28 17:58:20 (GMT) |
---|---|---|
committer | alexzhornyak <alexander.zhornyak@gmail.com> | 2017-06-28 17:58:20 (GMT) |
commit | 04a05dfd23ff9ab42270b7690cf0cd472068bbf1 (patch) | |
tree | d9c71a8c609363343b22b7a0cecf90b2400358ec /src/uscxml/util | |
parent | e24393f41834f116038faf6c6d5012575a67136a (diff) | |
download | uscxml-04a05dfd23ff9ab42270b7690cf0cd472068bbf1.zip uscxml-04a05dfd23ff9ab42270b7690cf0cd472068bbf1.tar.gz uscxml-04a05dfd23ff9ab42270b7690cf0cd472068bbf1.tar.bz2 |
Fixes issue #147
Fixes bug with Invoking callback message
Diffstat (limited to 'src/uscxml/util')
-rw-r--r-- | src/uscxml/util/Convenience.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uscxml/util/Convenience.h b/src/uscxml/util/Convenience.h index 35abf12..e3bdb9e 100644 --- a/src/uscxml/util/Convenience.h +++ b/src/uscxml/util/Convenience.h @@ -32,6 +32,7 @@ inline bool isnan(double x); template <typename T> std::string toStr(T tmp) { std::ostringstream outSS; outSS.precision(std::numeric_limits<double>::digits10 + 1); + outSS.imbue(std::locale("C")); outSS << tmp; return outSS.str(); } @@ -39,6 +40,7 @@ template <typename T> std::string toStr(T tmp) { template <typename T> T strTo(std::string tmp) { T output; std::istringstream in(tmp); + in.imbue(std::locale("C")); in >> output; return output; } |