Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think you're missing the point that gsl::index, unlike size_t, is signed.


Ssize_t then. Or ptrdiff_t.


`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: