workaround for an ICE of g++-5 (see #79)

This commit is contained in:
Michele Caini
2018-05-18 09:27:57 +02:00
parent d6ef0956e6
commit d93238912a

View File

@@ -274,8 +274,8 @@ TEST(View, MultipleComponentEachWithHoles) {
auto view = registry.view<char, int>();
view.each([&](auto entity, const char &c, const int &i) {
if(entity == e0) {
view.each([e0](auto entity, const char &c, const int &i) {
if(e0 == entity) {
ASSERT_EQ(c, '0');
ASSERT_EQ(i, 0);
} else {