Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/Benchmark/StringificationBench.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-09-18 17:13:17 +0100
committerPhil Nash2017-09-18 17:13:17 +0100
commit8da0d0473bde28328988b44efab1c4f996fa56cc (patch)
treec8d943219620b76791ecbdc843c37fd68ac9d044 /projects/Benchmark/StringificationBench.cpp
parent40209d1ae0fefc6ee4144be6bcb1366ef1444506 (diff)
downloadcatch3-8da0d0473bde28328988b44efab1c4f996fa56cc.tar.gz
qualified a load of size_ts with std:: namespace (all those not from Clara)
Diffstat (limited to 'projects/Benchmark/StringificationBench.cpp')
-rw-r--r--projects/Benchmark/StringificationBench.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/projects/Benchmark/StringificationBench.cpp b/projects/Benchmark/StringificationBench.cpp
index 1c14939b..765b4e96 100644
--- a/projects/Benchmark/StringificationBench.cpp
+++ b/projects/Benchmark/StringificationBench.cpp
@@ -11,11 +11,11 @@
///////////////////////////////////////////////////////////////////////////////
TEST_CASE("Successful tests -- REQUIRE", "[Success]") {
- const size_t sz = 1 * 1024 * 1024;
+ const std::size_t sz = 1 * 1024 * 1024;
- std::vector<size_t> vec; vec.reserve(sz);
- for (size_t i = 0; i < sz; ++i){
+ std::vector<std::size_t> vec; vec.reserve(sz);
+ for (std::size_t i = 0; i < sz; ++i){
vec.push_back(i);
REQUIRE(vec.back() == i);
}
@@ -23,11 +23,11 @@ TEST_CASE("Successful tests -- REQUIRE", "[Success]") {
///////////////////////////////////////////////////////////////////////////////
TEST_CASE("Successful tests -- CHECK", "[Success]") {
- const size_t sz = 1 * 1024 * 1024;
+ const std::size_t sz = 1 * 1024 * 1024;
- std::vector<size_t> vec; vec.reserve(sz);
- for (size_t i = 0; i < sz; ++i){
+ std::vector<std::size_t> vec; vec.reserve(sz);
+ for (std::size_t i = 0; i < sz; ++i){
vec.push_back(i);
CHECK(vec.back() == i);
}
@@ -35,11 +35,11 @@ TEST_CASE("Successful tests -- CHECK", "[Success]") {
///////////////////////////////////////////////////////////////////////////////
TEST_CASE("Unsuccessful tests -- CHECK", "[Failure]") {
- const size_t sz = 1024 * 1024;
+ const std::size_t sz = 1024 * 1024;
- std::vector<size_t> vec; vec.reserve(sz);
- for (size_t i = 0; i < sz; ++i){
+ std::vector<std::size_t> vec; vec.reserve(sz);
+ for (std::size_t i = 0; i < sz; ++i){
vec.push_back(i);
CHECK(vec.size() == i);
}