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
path: root/tests
diff options
context:
space:
mode:
authorJordan Maples <jomaples@microsoft.com>2020-05-30 01:45:25 +0300
committerJordan Maples <jomaples@microsoft.com>2020-05-30 01:45:25 +0300
commit72803a7ecb2c0868753488246c5d46489414954b (patch)
treeb93be263c5002cbefe39bd6b7803f72a615b14ef /tests
parent4d2090ebc41dc19b312ebbddc28660421bcaaf23 (diff)
adding template type to the vector to suppress clang-10 warning that vector may not intend for type deduction.
Diffstat (limited to 'tests')
-rw-r--r--tests/span_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp
index db536fa..6caaeea 100644
--- a/tests/span_tests.cpp
+++ b/tests/span_tests.cpp
@@ -1242,7 +1242,7 @@ TEST(span_test, from_array_constructor)
#if (defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201611L))
// 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};
static_assert(std::is_same<decltype(sp), gsl::span<int>>::value);
}