gsl::index ptrdiff_t -> size_t. remove span::at span::operator().

This commit is contained in:
Jordan Maples [MSFT]
2020-02-04 16:53:43 -08:00
parent 5a1e4f3953
commit d7e1611137
5 changed files with 39 additions and 111 deletions
+2 -1
View File
@@ -23,6 +23,7 @@
#include <limits> // for numeric_limits
#include <stdint.h> // for uint32_t, int32_t
#include <type_traits> // for is_same
#include <cstddef> // for std::size_t
using namespace gsl;
@@ -37,7 +38,7 @@ void g() { j += 1; }
TEST(utils_tests, sanity_check_for_gsl_index_typedef)
{
static_assert(std::is_same<gsl::index, std::ptrdiff_t>::value,
static_assert(std::is_same<gsl::index, std::size_t>::value,
"gsl::index represents wrong arithmetic type");
}