Answer by Kaznov for Aggregate initialization in C++
For aggregate initialization you need to initialize the base class, even if it's empty.eventBus->DispatchEvent<CollisionEvent>(Event{}, mEntities[i], mEntities[j]);There were also some changes...
View ArticleAggregate initialization in C++
I have a base class Event, from which concrete events derive:struct Event{};struct CollisionEvent : Event{ //CollisionEvent(Entity entityA, Entity entityB) : entityA(entityA), entityB(entityB) {}...
View Article
More Pages to Explore .....