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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/string_span_tests.cpp')
-rw-r--r--tests/string_span_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/string_span_tests.cpp b/tests/string_span_tests.cpp
index cd301a0..6876253 100644
--- a/tests/string_span_tests.cpp
+++ b/tests/string_span_tests.cpp
@@ -46,7 +46,7 @@ SUITE(string_span_tests)
TEST(TestConstructFromStdVector)
{
std::vector<char> vec(5, 'h');
- string_span<> v = vec;
+ string_span<> v {vec};
CHECK(v.length() == static_cast<string_span<>::size_type>(vec.size()));
}