Skip to content

Conversation

@miscco
Copy link
Contributor

@miscco miscco commented Jul 1, 2020

When modernizing the tests I found that there is a copy & paste error with a second overload that would not even compile if it was called.

Modernize the tests and remove the invalid overload.

I also changed the default type of the test_counted_write range to const int as we generally should avoid modifying the input range.

@miscco miscco requested a review from a team as a code owner July 1, 2020 11:52
Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

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

Great cleanup. (I'm just completely gobsmacked about the range overload of copy_n. 🤯)

@CaseyCarter CaseyCarter added the bug Something isn't working label Jul 1, 2020
@StephanTLavavej StephanTLavavej added the ranges C++20/23 ranges label Jul 8, 2020
East-`const` is best `const`, but `const`-west is de facto. =(
@StephanTLavavej StephanTLavavej self-assigned this Jul 10, 2020
@StephanTLavavej StephanTLavavej merged commit d31b0c7 into microsoft:master Jul 11, 2020
@StephanTLavavej
Copy link
Member

Thanks for finding and fixing this! 😺

@miscco miscco deleted the ranges_copy_n branch July 12, 2020 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ranges C++20/23 ranges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants