aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2020-10-29 10:54:37 -0700
committerGitHub <noreply@github.com>2020-10-29 10:54:37 -0700
commit2c3ab0211c4c7248d68d1f21b1a27c74a1562b46 (patch)
treec862753bb1b51608e0003e1d4dcf45e4d1178f91
parent179fba51f51e4c2776028336f6a00c4f7b7bf176 (diff)
downloadMicrosoft-GSL-2c3ab0211c4c7248d68d1f21b1a27c74a1562b46.tar.gz
Fix C26481 warning in span array ctor (#944)
* Azure pipeline (#8) * azure-pipeline test * nl @ eof * trimming the pipeline and adding debug steps * removing redundant lines * change ctest to script cmd and remove debug * removed bad char * added dir change for ctest * explicit output file and cmake standard * test cat * more ctest tests * injecting failure in test for validation * another test * removing bad test * massive matrix * added parallel * commenting everything but xcode out for testing purposes * uncomment the other tests * testing some variables * rename * changed macos versions * adding one more layer of templates * fixing jobs.yml * idk what i'm doing * slight modifications * maybe some spaces will help * removing 'variables.' * another test * adding back pr w/ autocancel * adding failing test to validate error = failing task * remove failing test * trigger master * nl in steps.yml * remove forced decay of array reference to pointer in span array ctor
-rw-r--r--include/gsl/span2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gsl/span b/include/gsl/span
index 1013a24..73a4d96 100644
--- a/include/gsl/span
+++ b/include/gsl/span
@@ -447,7 +447,7 @@ public:
template <std::size_t N,
std::enable_if_t<details::is_allowed_extent_conversion<N, Extent>::value, int> = 0>
constexpr span(element_type (&arr)[N]) noexcept
- : storage_(KnownNotNull{arr + 0}, details::extent_type<N>())
+ : storage_(KnownNotNull{arr}, details::extent_type<N>())
{}
template <