summaryrefslogtreecommitdiff
path: root/boost/spirit/home/x3/support/numeric_utils/extract_real.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/home/x3/support/numeric_utils/extract_real.hpp')
-rw-r--r--boost/spirit/home/x3/support/numeric_utils/extract_real.hpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/boost/spirit/home/x3/support/numeric_utils/extract_real.hpp b/boost/spirit/home/x3/support/numeric_utils/extract_real.hpp
index 9749fbec1f..fb5cd4d069 100644
--- a/boost/spirit/home/x3/support/numeric_utils/extract_real.hpp
+++ b/boost/spirit/home/x3/support/numeric_utils/extract_real.hpp
@@ -103,20 +103,6 @@ namespace boost { namespace spirit { namespace x3 { namespace extension
// no-op for unused_type
return n;
}
-
- template <typename T>
- inline bool
- is_equal_to_one(T const& value)
- {
- return value == 1.0;
- }
-
- inline bool
- is_equal_to_one(unused_type)
- {
- // no-op for unused_type
- return false;
- }
}}}}
namespace boost { namespace spirit { namespace x3
@@ -236,20 +222,6 @@ namespace boost { namespace spirit { namespace x3
// No exponent found. Scale the number by -frac_digits.
extension::scale(-frac_digits, n);
}
- else if (extension::is_equal_to_one(n))
- {
- // There is a chance of having to parse one of the 1.0#...
- // styles some implementations use for representing NaN or Inf.
-
- // Check whether the number to parse is a NaN or Inf
- if (p.parse_nan(first, last, n) ||
- p.parse_inf(first, last, n))
- {
- // If we got a negative sign, negate the number
- traits::move_to(extension::negate(neg, n), attr);
- return true; // got a NaN or Inf, return immediately
- }
- }
// If we got a negative sign, negate the number
traits::move_to(extension::negate(neg, n), attr);