Change
vector<class Observer*> views;

to
vector<Observer*> views;