More checks for non-compilable code, plus fix for span (#1180)

This commit is contained in:
Werner Henze
2025-01-04 18:50:31 +01:00
committed by GitHub
parent c832885f15
commit 1cdb8d295e
8 changed files with 439 additions and 412 deletions

View File

@@ -188,7 +188,7 @@ TEST(algorithm_tests, incompatible_type)
span<int> src_span_dyn(src);
span<int, 4> src_span_static(src);
span<int*> dst_span_dyn(dst);
span<int*, 4> dst_span_static(dst);
span<int*, 4> dst_span_static(gsl::make_span(dst));
// every line should produce a compilation error
copy(src_span_dyn, dst_span_dyn);