Skip to content

Commit 4305e68

Browse files
author
Werner Henze
committed
algorithm_test, span_tests.cpp
1 parent f7b58f7 commit 4305e68

File tree

2 files changed

+127
-196
lines changed

2 files changed

+127
-196
lines changed

tests/algorithm_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ TEST(algorithm_tests, incompatible_type)
188188
span<int> src_span_dyn(src);
189189
span<int, 4> src_span_static(src);
190190
span<int*> dst_span_dyn(dst);
191-
span<int*, 4> dst_span_static(dst);
191+
span<int*, 4> dst_span_static(gsl::make_span(dst));
192192

193193
// every line should produce a compilation error
194194
copy(src_span_dyn, dst_span_dyn);

0 commit comments

Comments
 (0)