All pastes #215488 Raw Edit

Untitled

public text v1 · immutable
#215488 ·published 2006-10-22 17:15 UTC
rendered paste body
class EventServer
{
public:
	EventServer();
	virtual ~EventServer();
	virtual void RegisterListener(EventListener *l);
	virtual void SendEvent(SDL_Event *e);
private:
	std::vector<EventListener *> listeners;

};

EventServer::EventServer() {
	listeners.reserve(4);
}

causes error
c:\haloweencontest\haloweencontest\eventpump.cpp(3) : error C2533: 'EventPump::{ctor}' : constructors not allowed a return type