Skip to content

Commit 3839068

Browse files
committed
LWG4430 from_chars should not parse "0b" base prefixes
1 parent 7f17340 commit 3839068

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/text.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,10 @@
289289
in the \tcode{"C"} locale
290290
for the given nonzero base,
291291
as described for \tcode{strtol},
292-
except that no \tcode{"0x"} or \tcode{"0X"} prefix shall appear
292+
except that
293+
no \tcode{"0b"} or \tcode{"0B"} prefix shall appear
294+
if the value of \tcode{base} is 2,
295+
no \tcode{"0x"} or \tcode{"0X"} prefix shall appear
293296
if the value of \tcode{base} is 16,
294297
and except that \tcode{'-'}
295298
is the only sign that may appear,

0 commit comments

Comments
 (0)