Fix std::span 2020 compilation errors + test failures

This commit is contained in:
Dmitry Kobets
2021-11-29 10:39:17 -08:00
parent e0880931ae
commit f2feab563f
7 changed files with 39 additions and 36 deletions
+1 -2
View File
@@ -43,7 +43,6 @@
#include "deathTestCommon.h"
using namespace std;
using namespace gsl;
namespace
@@ -1085,7 +1084,7 @@ TEST(span_test, as_bytes)
int b[5] = {1, 2, 3, 4, 5};
{
span<int> sp(begin(b), static_cast<size_t>(-2));
span<int> sp(std::begin(b), static_cast<size_t>(-2));
EXPECT_DEATH((void) sp.size_bytes(), expected);
}
}