alecthomas / entityx

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

Mark EntityX::valid as const #159

Closed hannahwhy closed 8 years ago

hannahwhy commented 8 years ago

This allows EntityX::valid to be used in situations where we have (e.g.) a const reference to an entity manager.

I've verified that the example SFML 2 application and entity_test both compile and run/pass with this change.

hannahwhy commented 8 years ago

Wow, that was quick :) Thank you!