File tree 1 file changed +4
-0
lines changed
tests/std/tests/P0896R4_ranges_iterator_machinery
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1076,7 +1076,11 @@ namespace iterator_cust_move_test {
1076
1076
#if defined(__clang__) || defined(__EDG__) // TRANSITION, VSO-1008447
1077
1077
static_assert (same_as<iter_rvalue_reference_t <int (int )>, int (&)(int )>);
1078
1078
#else // ^^^ no workaround / workaround vvv
1079
+ #ifdef _MSVC_INTERNAL_TESTING // TRANSITION, assertion will fire once VSO-2066340 ships.
1080
+ static_assert (same_as<iter_rvalue_reference_t <int (int )>, int (&&)(int )>);
1081
+ #else // ^^^ defined(_MSVC_INTERNAL_TESTING) / !defined(_MSVC_INTERNAL_TESTING) vvv
1079
1082
static_assert (same_as<iter_rvalue_reference_t <int (int )>, int (*)(int )>);
1083
+ #endif // ^^^ !defined(_MSVC_INTERNAL_TESTING)
1080
1084
#endif // ^^^ workaround ^^^
1081
1085
1082
1086
static_assert (same_as<iter_rvalue_reference_t <int [4 ]>, int &&>);
You can’t perform that action at this time.
0 commit comments