spirit
spirit copied to clipboard
Limit the number of digits the real number policies can process.
See: https://github.com/boostorg/spirit/pull/282
A better way to address this is to not allow such big digits in the default real number policies for primitive floating point numbers. The current code (real policies) limits the number of digits to traits::max_digits10<T>::value. The new ignore_excess_digits policy should also have a limit as well.