Category : aggregate

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) {} Entity entityA; Entity entityB; }; this class is a POD, and I should be able to perform aggregate initializaion. But the following code fails to compile: called ..

Read more