Skip to content

size_type should be unsigned #171

Closed
Closed

Description

GSL uses std::ptrdiff_t for size_type, which leads to the "signed/unsigned comparison" warnings.
It doesn't look like span::size can return negative values, so it should use std::size_t for size_type, as standard library containers do.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions