@@ -285,13 +285,11 @@ int main() {
285
285
assert (!ep);
286
286
}
287
287
288
- #if !defined(TEST_TOPO_SORT) || defined(_MSVC_INTERNAL_TESTING) // TRANSITION, VSO-1471382 fixed in VS 2022 17.2p2
289
288
{
290
289
puts (" Testing <execution>." );
291
290
constexpr int arr[]{11 , 0 , 22 , 0 , 33 , 0 , 44 , 0 , 55 };
292
291
assert (count (execution::par, begin (arr), end (arr), 0 ) == 4 );
293
292
}
294
- #endif // ^^^ no workaround ^^^
295
293
296
294
{
297
295
puts (" Testing <filesystem>." );
@@ -321,7 +319,6 @@ int main() {
321
319
assert (!f.is_open ());
322
320
}
323
321
324
- #if !defined(TEST_TOPO_SORT) || defined(_MSVC_INTERNAL_TESTING) // TRANSITION, VSO-1471374 fixed in VS 2022 17.2p2
325
322
{
326
323
puts (" Testing <functional>." );
327
324
function<int (int , int )> f{multiplies{}};
@@ -332,7 +329,6 @@ int main() {
332
329
assert (b (3 ) == 33 );
333
330
static_assert (b (3 ) == 33 );
334
331
}
335
- #endif // ^^^ no workaround ^^^
336
332
337
333
{
338
334
puts (" Testing <future>." );
@@ -865,7 +861,6 @@ int main() {
865
861
assert (this_thread::get_id () != thread::id{});
866
862
}
867
863
868
- #if !defined(TEST_TOPO_SORT) || defined(_MSVC_INTERNAL_TESTING) // TRANSITION, VSO-1471374 fixed in VS 2022 17.2p2
869
864
{
870
865
puts (" Testing <tuple>." );
871
866
constexpr tuple<int , char , double > t{1729 , ' c' , 1.25 };
@@ -876,7 +871,6 @@ int main() {
876
871
static_assert (get<char >(t) == ' c' );
877
872
static_assert (get<double >(t) == 1.25 );
878
873
}
879
- #endif // ^^^ no workaround ^^^
880
874
881
875
{
882
876
puts (" Testing <type_traits>." );
@@ -958,14 +952,10 @@ int main() {
958
952
{
959
953
puts (" Testing <variant>." );
960
954
constexpr const char * cats = " CATS" ;
961
- #if 0 // TRANSITION, DevCom-1162647 (constexpr variant stores wrong pointer)
962
955
constexpr variant<int , const char *, double > var{in_place_type<const char *>, cats};
963
956
static_assert (var.index () == 1 );
964
957
static_assert (holds_alternative<const char *>(var));
965
958
static_assert (get<const char *>(var) == cats);
966
- #else // ^^^ no workaround / workaround vvv
967
- const variant<int , const char *, double > var{in_place_type<const char *>, cats};
968
- #endif // ^^^ workaround ^^^
969
959
assert (var.index () == 1 );
970
960
assert (holds_alternative<const char *>(var));
971
961
assert (get<const char *>(var) == cats);
0 commit comments