diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-05-10 22:43:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 22:43:35 (GMT) |
commit | 315e6aeec9e505c96aebbd60264ec117e1db0b81 (patch) | |
tree | fa107097507a507665ea509e3ae8fa850561d7a6 | |
parent | 5083ea697c263a507341c98c5dadbb23953bd4fb (diff) | |
parent | 82bbbd94d67aa34db489622ea4020f588de9d53b (diff) | |
download | uscxml-315e6aeec9e505c96aebbd60264ec117e1db0b81.zip uscxml-315e6aeec9e505c96aebbd60264ec117e1db0b81.tar.gz uscxml-315e6aeec9e505c96aebbd60264ec117e1db0b81.tar.bz2 |
Merge pull request #125 from alexzhornyak/Convinience
Fixes Visual Studio Compiler Error C2491 with dllimport templates
-rw-r--r-- | src/uscxml/util/Convenience.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/util/Convenience.h b/src/uscxml/util/Convenience.h index 98c4220..35abf12 100644 --- a/src/uscxml/util/Convenience.h +++ b/src/uscxml/util/Convenience.h @@ -29,14 +29,14 @@ namespace uscxml { inline bool isnan(double x); // see http://stackoverflow.com/questions/228005/alternative-to-itoa-for-converting-integer-to-string-c -template <typename T> std::string USCXML_API toStr(T tmp) { +template <typename T> std::string toStr(T tmp) { std::ostringstream outSS; outSS.precision(std::numeric_limits<double>::digits10 + 1); outSS << tmp; return outSS.str(); } -template <typename T> T USCXML_API strTo(std::string tmp) { +template <typename T> T strTo(std::string tmp) { T output; std::istringstream in(tmp); in >> output; |