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
diff options
context:
space:
mode:
authordmitrykobets-msft <89153909+dmitrykobets-msft@users.noreply.github.com>2021-12-10 01:54:06 +0300
committerGitHub <noreply@github.com>2021-12-10 01:54:06 +0300
commitbcf008ae5578fab638e6d30b7ca000f306b14d3b (patch)
treeca03dd9416ffe92aa6ef1511e3142c25fccb526f /tests/span_tests.cpp
parente0880931ae5885eb988d1a8a57acf8bc2b8dacda (diff)
Fix/implement C++2020 compilation, tests, and CI (#1017)
* Fix C++20 bugs and tests * Rework CI for C++2020 tests * Update readme compiler versions
Diffstat (limited to 'tests/span_tests.cpp')
-rw-r--r--tests/span_tests.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp
index 1e0222e..33ccf56 100644
--- a/tests/span_tests.cpp
+++ b/tests/span_tests.cpp
@@ -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);
}
}