diff options
| author | Michael Goulish <mgoulish@apache.org> | 2013-01-10 17:26:13 +0000 |
|---|---|---|
| committer | Michael Goulish <mgoulish@apache.org> | 2013-01-10 17:26:13 +0000 |
| commit | 96a244cff1f87ce0039326e7a93f264217ca6088 (patch) | |
| tree | 924b3384e17215859343e0c8a6dabf7afcdecb43 /cpp/src | |
| parent | 5bcd8e81dcb6e300bd36f3814cb8003c92c6c934 (diff) | |
| download | qpid-python-96a244cff1f87ce0039326e7a93f264217ca6088.tar.gz | |
NO-JIRA : undoing r1431435. It's wrong, wrong, wrong!
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1431509 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/types/Variant.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cpp/src/qpid/types/Variant.cpp b/cpp/src/qpid/types/Variant.cpp index 56a93799ed..139ddc7ab4 100644 --- a/cpp/src/qpid/types/Variant.cpp +++ b/cpp/src/qpid/types/Variant.cpp @@ -114,15 +114,6 @@ class VariantImpl { const std::string& s = *value.string; - // The lexical cast below is throwing when the type - // is signed and the value is negative-zero. Bug, I guess. - // So short-circuit it here. Negative zero is zero. - double dbl_val = atof ( s.c_str() ); - if ( ( dbl_val == 0 ) && ( 0 == s.find('-') ) ) { - T r = 0; - return r; - } - try { T r = boost::lexical_cast<T>(s); //lexical_cast won't fail if string is a negative number and T is unsigned |
