Make the n specifier an opt-in
This commit is contained in:
1 parent
31ce6bc702
commit
56e63078ff
4 files changed
+22
-19
No files matched your search
@@ -1234,7 +1234,9 @@ FMT_CONSTEXPR void handle_int_type_spec(char spec, Handler&& handler) {
|
||||
case 'o':
|
||||
handler.on_oct();
|
||||
break;
|
||||
#ifdef FMT_DEPRECATED_N_SPECIFIER
|
||||
case 'n':
|
||||
#endif
|
||||
case 'L':
|
||||
handler.on_num();
|
||||
break;
|
||||
@@ -1282,7 +1284,9 @@ FMT_CONSTEXPR float_specs parse_float_type_spec(
|
||||
case 'a':
|
||||
result.format = float_format::hex;
|
||||
break;
|
||||
#ifdef FMT_DEPRECATED_N_SPECIFIER
|
||||
case 'n':
|
||||
#endif
|
||||
case 'L':
|
||||
result.locale = true;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user