Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress es.46 warning in implementation of gsl::narrow #1046

Merged
merged 1 commit into from Apr 28, 2022

Conversation

dmitrykobets-msft
Copy link
Member

As per the CoreGuidelines, gsl::narrow is defined in terms of static_cast.
Suppress es.46, which suggests converting the static_cast into gsl::narrow.

This resolves #1036

As per the CoreGuidelines, gsl::narrow is defined in terms of static_cast.
Suppress es.46, which suggests converting the static_cast into gsl::narrow
@dmitrykobets-msft dmitrykobets-msft merged commit d8c493c into microsoft:main Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

es.46 on gsl::narrow/gsl::narrow_cast
2 participants