Closed aTom3333 closed 5 years ago
This is VASTLY preferred as a method of reporting issues, because it doesn't get lost in my e-mail and ACTUALLY gets tracked, WEW!
Thanks for reporting; I'll get right on it.
(You can always send me an e-mail too, if Github isn't an option.)
This is fixed now.
Hello, I read the P1378 paper and I believe I found an error in the [support.stringlit] section where the size method is defined:
N
is the template parameter defined as the size of the string including the null terminator, so I believe thesize()
method in meant to returnN-1
instead ofN
for coherency with other string types and post condition given in the default constructor "Ensures:size() == 0
and*end() == '\0'
." whereN
has to be 1 forarr
to be able to hold'\0'
butsize()
is expected to return 0.ps: I don't know if opening a github issue is the way to report errors as I'm not used to it, let me know if it is not the case.