tst_QSpan: fix a typo
We've already tested fixed-size-0 spans for default-constructibility
two lines before. We need to check dynamically-sized spans here.
This doesn't extend test coverage: in the course of the function we've
already default-constructed the correct type.
Amends f82cf6333e.
Pick-to: 6.7
Change-Id: Ibb192b1661f12babb449752bf107eca404a95ad2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
parent
41e6742790
commit
6ea123ca4c
|
|
@ -149,7 +149,7 @@ void tst_QSpan::onlyZeroExtentSpansHaveDefaultCtors() const
|
|||
static_assert(std::is_nothrow_default_constructible_v<QSpan<int, 0>>);
|
||||
static_assert(std::is_nothrow_default_constructible_v<QSpan<const int, 0>>);
|
||||
static_assert(std::is_nothrow_default_constructible_v<QSpan<int>>);
|
||||
static_assert(std::is_nothrow_default_constructible_v<QSpan<const int, 0>>);
|
||||
static_assert(std::is_nothrow_default_constructible_v<QSpan<const int>>);
|
||||
|
||||
QSpan<int, 0> si;
|
||||
check_null_span(si);
|
||||
|
|
|
|||
Loading…
Reference in New Issue