Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/std/tests/P0896R4_ranges_iterator_machinery/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,11 @@ namespace iterator_cust_move_test {
#if defined(__clang__) || defined(__EDG__) // TRANSITION, VSO-1008447
static_assert(same_as<iter_rvalue_reference_t<int(int)>, int (&)(int)>);
#else // ^^^ no workaround / workaround vvv
#ifdef _MSVC_INTERNAL_TESTING // TRANSITION, assertion will fire once VSO-2066340 ships.
static_assert(same_as<iter_rvalue_reference_t<int(int)>, int (&&)(int)>);
#else // ^^^ defined(_MSVC_INTERNAL_TESTING) / !defined(_MSVC_INTERNAL_TESTING) vvv
static_assert(same_as<iter_rvalue_reference_t<int(int)>, int (*)(int)>);
#endif // ^^^ !defined(_MSVC_INTERNAL_TESTING)
Copy link
Member

Choose a reason for hiding this comment

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

No change requested: This comment is missing ^^^ at the end but it's fine, I'll be removing this preprocessor logic pretty soon anyways.

#endif // ^^^ workaround ^^^

static_assert(same_as<iter_rvalue_reference_t<int[4]>, int&&>);
Expand Down