From e711a6f6b2652bb7df6319611e1d9ad5ecdbecf0 Mon Sep 17 00:00:00 2001 From: Michael Goulish Date: Thu, 10 Jan 2013 17:26:13 +0000 Subject: NO-JIRA : undoing r1431435. It's wrong, wrong, wrong! git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431509 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/types/Variant.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/types/Variant.cpp b/qpid/cpp/src/qpid/types/Variant.cpp index 56a93799ed..139ddc7ab4 100644 --- a/qpid/cpp/src/qpid/types/Variant.cpp +++ b/qpid/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(s); //lexical_cast won't fail if string is a negative number and T is unsigned -- cgit v1.2.1