Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJordan Maples <jomaples@microsoft.com>2020-05-20 23:37:42 +0300
committerJordan Maples <jomaples@microsoft.com>2020-05-20 23:37:42 +0300
commit1e444816463196b1dbf6eeb8b6cb7c797d4c9c11 (patch)
tree46484e15f8389dd1dd34094233f3d0c55cae564c /tests
parented3fea6d9317305e27ff3022424791d78369a6ff (diff)
Finished integrating CaseyCarter's changes into span
Diffstat (limited to 'tests')
-rw-r--r--tests/span_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp
index ae4503e..44198a6 100644
--- a/tests/span_tests.cpp
+++ b/tests/span_tests.cpp
@@ -1144,7 +1144,7 @@ TEST(span_test, from_array_constructor)
// you can convert statically
{
- const span<int, 2> s2(&arr[0], 2);
+ const span<int, 2> s2{&arr[0], 2};
static_cast<void>(s2);
}
{
@@ -1180,7 +1180,7 @@ TEST(span_test, from_array_constructor)
#endif
{
auto f = [&]() {
- const span<int, 4> _s4(arr2, 2);
+ span<int, 4> _s4{arr2, 2};
static_cast<void>(_s4);
};
EXPECT_DEATH(f(), deathstring);