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:
authorNeil MacIntosh <neilmac@microsoft.com>2016-03-01 23:11:41 +0300
committerNeil MacIntosh <neilmac@microsoft.com>2016-03-01 23:11:41 +0300
commitc40094a532f932bc0ed7af2279161dc4bc72b85d (patch)
treeef87ebf78a905a1b8838fe4163baa09e9e97193b /tests/string_span_tests.cpp
parentf61a9bba48fa410e2df4519793f7480be4b85934 (diff)
Added from-container constructors.
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()));
}