aboutsummaryrefslogtreecommitdiffstats
path: root/examples/example.cc
diff options
context:
space:
mode:
authorAlec Thomas <alec@swapoff.org>2015-04-24 11:47:33 +1000
committerAlec Thomas <alec@swapoff.org>2015-04-24 11:47:33 +1000
commit29d8c3763c27e5cc18695f8261145c836670efd7 (patch)
treeafd06bf8135fb3e865037dde8beaac80172fc32e /examples/example.cc
parent26f02d3e4a8d78d4dbe406748b65da83195ad170 (diff)
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.
Diffstat (limited to 'examples/example.cc')
0 files changed, 0 insertions, 0 deletions