Skip to content

Commit

Permalink
comment test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Werner Henze committed Jan 4, 2025
1 parent 8124d30 commit e60f0ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/span_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ TEST(span_test, from_pointer_pointer_construction)
EXPECT_TRUE(s.data() == &arr[0]);
}

// this will fail the std::distance() precondition, which asserts on MSVC debug builds
//{ // this test succeeds on all platforms, but it relies on UB
//{ // this test succeeds on all platforms, gsl::span is more relaxed than std::span where this would be UB
// auto workaround_macro = [&]() { span<int> s{&arr[1], &arr[0]}; };
// EXPECT_DEATH(workaround_macro(), expected);
//}
Expand Down

0 comments on commit e60f0ea

Please sign in to comment.