Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Leszek
on March 9, 2018
|
parent
|
context
|
favorite
| on:
C++ Core Guidelines
I think you're missing the point that gsl::index, unlike size_t, is signed.
AstralStorm
on March 9, 2018
[–]
Ssize_t then. Or ptrdiff_t.
smitherfield
on March 9, 2018
|
parent
[–]
`ssize_t` isn't standard C++ (it is required by POSIX); `ptrdiff_t` is only one character fewer than `gsl::index`.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: