You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason why span takes an int instead of unsigned int? It's really annoying when you have to convert index's to unsigned int every time you want to index into a span (assuming your using -Wsign-conversion -Wconversion).
What's even more annoying is how it's not consistent with std::vector and friends which take unsigned ints, so your constantly having to static_cast / verify sizes via numeric_limit<>.
The text was updated successfully, but these errors were encountered:
Is there a reason why span takes an int instead of unsigned int? It's really annoying when you have to convert index's to unsigned int every time you want to index into a span (assuming your using -Wsign-conversion -Wconversion).
What's even more annoying is how it's not consistent with std::vector and friends which take unsigned ints, so your constantly having to static_cast / verify sizes via numeric_limit<>.
The text was updated successfully, but these errors were encountered: