Skip to content

Commit

Permalink
fix shadow warnigns and positive lambda explanation (skypjack#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Apr 16, 2019
1 parent 6fea437 commit cfcc6e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/entt/entity/registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ class basic_registry {
{ sizeof...(Get), sizeof...(Exclude) },
std::make_unique<group_type>(),
+[](const ENTT_ID_TYPE *other) {
const std::size_t types[] = { type<Get>()..., type<Exclude>()... };
return std::equal(std::begin(types), std::end(types), other);
const std::size_t ctypes[] = { type<Get>()..., type<Exclude>()... };
return std::equal(std::begin(ctypes), std::end(ctypes), other);
}
};

Expand Down Expand Up @@ -350,8 +350,8 @@ class basic_registry {
{ sizeof...(Owned), sizeof...(Get), sizeof...(Exclude) },
std::make_unique<group_type>(),
+[](const ENTT_ID_TYPE *other) {
const std::size_t types[] = { type<Owned>()..., type<Get>()..., type<Exclude>()... };
return std::equal(std::begin(types), std::end(types), other);
const std::size_t ctypes[] = { type<Owned>()..., type<Get>()..., type<Exclude>()... };
return std::equal(std::begin(ctypes), std::end(ctypes), other);
},
+[](ENTT_ID_TYPE ctype) {
return ((ctype == type<Owned>()) || ...);
Expand Down

0 comments on commit cfcc6e1

Please sign in to comment.