alecthomas / entityx

EntityX - A fast, type-safe C++ Entity-Component system
MIT License
2.23k stars 295 forks source link

Add missing argument in Entity::components() const #196

Closed hannahwhy closed 7 years ago

hannahwhy commented 7 years ago

EntityX::components() requires the entity ID in both its non-const and const variants, butEntity::components() passed said ID in only one such variant.

This commit also includes a test (almost identical to the existing Entity::components() test) to exercise the compiler on this code path.

alecthomas commented 7 years ago

Thank you!