EntityOutOfBoundsEvent event{ entities[i], p[i].x }; Says no instance of constructor matches argument list struct Event
{
virtual ~Event() {}
};struct EntityOutOfBoundsEvent : public Event
{
std::uint32_t entityId;
float xPosition;
};