-
-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bunch of constness issues (fixes #95).
- Use SFINAE to prevent non-const access to component<C>(). - Correctly de-const component types before accessing Component<C>::family(). Avoids accidentally assigning new family IDs. - ComponentHandle should handle const propagation correctly now. - ComponentHandle.manager_ should now be `const EntityManager` where appropriate.
- Loading branch information
1 parent
26f02d3
commit 29d8c37
Showing
2 changed files
with
81 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters