Skip to content

Update return by value threshold in gsl::not_null - #1205

Merged
Carson Radtke (carsonRadtke) merged 1 commit into
microsoft:mainfrom
ozaktash:not-null-rbv-th
May 12, 2025
Merged

Update return by value threshold in gsl::not_null#1205
Carson Radtke (carsonRadtke) merged 1 commit into
microsoft:mainfrom
ozaktash:not-null-rbv-th

Conversation

@ozaktash

@ozaktash ozaktash commented May 4, 2025

Copy link
Copy Markdown
Contributor

Fixes: #1204

  • Allow returning by value for types that are not greater than two pointers in size

- Allow returning by value for types that are not greater than two pointers in size

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • include/gsl/pointers: Language not supported

@carsonRadtke

Copy link
Copy Markdown
Member

Thanks for identifying this issue and posting a fix!

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

Labels

Status: Review Needed Needs review from GSL maintainers Type: Enhancement Suggests an improvement or new feature

Projects

Development

Successfully merging this pull request may close these issues.

gsl::not_null should allow returning by value for the types whose size equals to the size of two pointers

3 participants