diff options
Diffstat (limited to 'tests/span_ext_tests.cpp')
-rw-r--r-- | tests/span_ext_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/span_ext_tests.cpp b/tests/span_ext_tests.cpp index d413e03..726d38f 100644 --- a/tests/span_ext_tests.cpp +++ b/tests/span_ext_tests.cpp @@ -320,7 +320,7 @@ TEST(span_ext_test, make_span_from_array_constructor) {
int arr[] = {1, 2, 3};
- span<int> s1 = {&arr[0], 2}; // shorter
+ span<int> s1 = span<int>(&arr[0], 2); // shorter
span<int> s2 = arr; // longer
EXPECT_TRUE(s1 != s2);
|