Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SuperWig
Copy link
Contributor

@SuperWig SuperWig commented Oct 4, 2022

Fixes #2933

Some questions:

  • Is the custom array list visualiser worth the novelty?
    • is it possible to use the value in the item name? My first thought for the iterators was to have it like [{_Current)] {Value}
  • What would be the right noexcept spec for the reconstruction stuff? I just left one as true
    • For that matter I'm not sure what the sensible way to test the noexceptness of the tuple overload.
  • Better name or methods for the noexcept testing helpers would be nice.
  • Any interesting views that is missing coverage?

Most of the test is reworked from the iota_view test, I might have removed something that should have been kept/reworked.

Drive-by fixed single_views visualizer, I'm assuming the intent was to wrap it in []

@SuperWig SuperWig requested a review from a team as a code owner October 4, 2022 14:16
@CaseyCarter CaseyCarter added cxx23 C++23 feature ranges C++20/23 ranges labels Oct 4, 2022
@strega-nil-ms strega-nil-ms self-assigned this Oct 4, 2022
Copy link
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

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

Thanks so much! Just some minor changes requested

thumbs up!

Copy link
Contributor

@frederick-vs-ja frederick-vs-ja left a comment

Choose a reason for hiding this comment

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

Several functions should be unconditionally marked with noexcept, since operations on integer-like types are all noexcept, and the iterator is implemented as a trivially copyable type.

@SuperWig
Copy link
Contributor Author

SuperWig commented Oct 12, 2022

Just to be clear so I know where to pick up tomorrow when you lot (except a certain vampire) are probably asleep. The noexcept-ness shouldn't depend on the bound type at all?

Edit: oh, didn't see the "11 comments" button 😅.

Copy link
Contributor

@frederick-vs-ja frederick-vs-ja left a comment

Choose a reason for hiding this comment

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

One internal constructor can't be unconditionally noexcept.

The noexcept-ness shouldn't depend on the bound type at all?

I think it does depend. But the permitted set of bound types is very small (only integer-like types and unreachable_sentinel_t), and noexcept-ness is always hold for its elements.

@strega-nil-ms strega-nil-ms removed their assignment Oct 14, 2022
@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej StephanTLavavej removed their assignment Dec 7, 2022
@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej StephanTLavavej self-assigned this Jan 25, 2023
@StephanTLavavej StephanTLavavej removed their assignment Jan 26, 2023
@StephanTLavavej
Copy link
Member

Thanks! I pushed some minor changes (most notable being a slight expansion of death test coverage) and I believe that all outstanding comments have been resolved. Onwards to final review!

@CaseyCarter CaseyCarter self-requested a review January 27, 2023 00:37
@StephanTLavavej StephanTLavavej self-assigned this Jan 27, 2023
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 1868694 into microsoft:main Jan 28, 2023
@StephanTLavavej
Copy link
Member

Thanks! Thanks! Thanks! Thanks! Thanks! Thanks! Thanks! Thanks! Thanks! Thanks! 😹 😹 😹

@CaseyCarter
Copy link
Contributor

You can say that again.

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

Labels

cxx23 C++23 feature ranges C++20/23 ranges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P2474R2 views::repeat

8 participants