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

Fix return type of transform scan and copy if patterns #1811

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

adamfidel
Copy link
Contributor

As discovered in #1762 (comment), there is a mismatch in the return type for the transform scan pattern. A similar issue exists with copy_if. This PR uses the difference type of the output range as the size type for n to match the return type of the patterns.

Copy link
Contributor

@danhoeflinger danhoeflinger left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@mmichel11 mmichel11 left a comment

Choose a reason for hiding this comment

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

LGTM

@adamfidel adamfidel added this to the 2022.7.0 milestone Aug 30, 2024
Copy link
Contributor

@julianmi julianmi left a comment

Choose a reason for hiding this comment

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

LGTM

@adamfidel adamfidel merged commit db85523 into main Sep 3, 2024
20 checks passed
@adamfidel adamfidel deleted the dev/adamfidel/transform_scan_pattern_return_type branch September 3, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants