Added from-container constructors.

This commit is contained in:
Neil MacIntosh committed 2016-03-01 12:11:41 -08:00
1 parent f61a9bba48
commit c40094a532
5 files changed
+68 -34

No files matched your search

+2 -2
View File
@@ -438,7 +438,7 @@ SUITE(span_tests)
}
#endif
}
#if 0
TEST(from_container_constructor)
{
std::vector<int> v = {1, 2, 3};
@@ -512,7 +512,7 @@ SUITE(span_tests)
#endif
}
}
#if 0
TEST(from_convertible_span_constructor)
{
#ifdef CONFIRM_COMPILATION_ERRORS
+1 -1
View File
@@ -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()));
}