mirror of
https://github.com/microsoft/GSL.git
synced 2025-11-17 07:49:36 +01:00
Extend docs and tests for span ctor (#1096)
This commit is contained in:
@@ -681,6 +681,13 @@ TEST(span_test, from_convertible_span_constructor)
|
||||
static_cast<void>(avcd);
|
||||
}
|
||||
|
||||
{
|
||||
std::array<DerivedClass, 2> arr{};
|
||||
span<DerivedClass> avd{arr};
|
||||
using T = span<const DerivedClass, 1>;
|
||||
EXPECT_DEATH(T{avd}, expected);
|
||||
}
|
||||
|
||||
{
|
||||
std::array<DerivedClass, 1> arr{};
|
||||
span<DerivedClass> avd{arr};
|
||||
|
||||
Reference in New Issue
Block a user