Completely remove deprecated macroses FASTFLOAT_ALLOWS_LEADING_PLUS and FASTFLOAT_SKIP_WHITE_SPACE, please use options.

Compilation fix when FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN isn't defined.
This commit is contained in:
IRainman 2025-03-09 02:37:46 +03:00
parent ae29a0dbe5
commit f496321570
2 changed files with 2 additions and 10 deletions

View File

@ -72,15 +72,7 @@ template <typename UC> struct parse_options_t {
: format(fmt), decimal_point(dot), base(static_cast<uint8_t>(b)) {}
/** Which number formats are accepted */
const chars_format format
// adjust for deprecated feature macros
#ifdef FASTFLOAT_ALLOWS_LEADING_PLUS
| chars_format::allow_leading_plus
#endif
#ifdef FASTFLOAT_SKIP_WHITE_SPACE
| chars_format::skip_white_space
#endif
;
const chars_format format;
/** The character used as decimal point */
const UC decimal_point;
/** The base used for integers */

View File

@ -378,7 +378,7 @@ from_chars_int_advanced(UC const *first, UC const *last, T &value,
#endif
if (
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
first == last
first == last ||
#endif
options.base < 2 || options.base > 36) {
from_chars_result_t<UC> answer;