mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-25 01:01:58 -05:00
adding template type to the vector to suppress clang-10 warning that vector may not intend for type deduction.
This commit is contained in:
parent
4d2090ebc4
commit
72803a7ecb
@ -1242,7 +1242,7 @@ TEST(span_test, from_array_constructor)
|
|||||||
#if (defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201611L))
|
#if (defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201611L))
|
||||||
// this test is just to verify that these compile
|
// this test is just to verify that these compile
|
||||||
{
|
{
|
||||||
std::vector v{1,2,3,4};
|
std::vector<int> v{1,2,3,4};
|
||||||
gsl::span sp{v};
|
gsl::span sp{v};
|
||||||
static_assert(std::is_same<decltype(sp), gsl::span<int>>::value);
|
static_assert(std::is_same<decltype(sp), gsl::span<int>>::value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user