avoid global shadowing to an extent (close #207)

This commit is contained in:
Michele Caini
2019-03-20 08:33:26 +01:00
parent 5ec38b44b0
commit 6ab0b60f12
23 changed files with 410 additions and 405 deletions

View File

@@ -990,7 +990,7 @@ TEST(Benchmark, IteratePathological) {
if(i % 17) { registry.destroy(entity); }
});
for(std::uint64_t i = 0; i < 50000L; i++) {
for(std::uint64_t j = 0; j < 50000L; j++) {
const auto entity = registry.create();
registry.assign<position>(entity);
registry.assign<velocity>(entity);
@@ -1031,7 +1031,7 @@ TEST(Benchmark, IteratePathologicalNonOwningGroup) {
if(i % 17) { registry.destroy(entity); }
});
for(std::uint64_t i = 0; i < 50000L; i++) {
for(std::uint64_t j = 0; j < 50000L; j++) {
const auto entity = registry.create();
registry.assign<position>(entity);
registry.assign<velocity>(entity);
@@ -1072,7 +1072,7 @@ TEST(Benchmark, IteratePathologicalFullOwningGroup) {
if(i % 17) { registry.destroy(entity); }
});
for(std::uint64_t i = 0; i < 50000L; i++) {
for(std::uint64_t j = 0; j < 50000L; j++) {
const auto entity = registry.create();
registry.assign<position>(entity);
registry.assign<velocity>(entity);
@@ -1113,7 +1113,7 @@ TEST(Benchmark, IteratePathologicalPartialOwningGroup) {
if(i % 17) { registry.destroy(entity); }
});
for(std::uint64_t i = 0; i < 50000L; i++) {
for(std::uint64_t j = 0; j < 50000L; j++) {
const auto entity = registry.create();
registry.assign<position>(entity);
registry.assign<velocity>(entity);