Skip to content

hardened std::span is the same as gsl::span #1197

Description

@tiagomacarios

With various standard library implementing a hardened mode (see microsoft/STL#5090 for an example) would it be interesting for us to warn users to use that instead?

In larger codebases there is always some confusion on what to use. If we could create clarity that would be great. I am just brainstorming, but I wonder if having something like the below would be possible/helpful.

#ifdef _MSVC_STL_HARDENING_SPAN
#error use std::span instead
#endif

Activity

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

Metadata

Metadata

Assignees

Labels

Status: BlockedCannot proceed due to external factorsStatus: OpenNeeds attentionType: BugIndicates a bug or error

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions