Konstruktor dla '' musi jawnie zainicjować element odniesienia ''

Mam tę klasę

class CamFeed {
public:
    // constructor
    CamFeed(ofVideoGrabber &cam); 
    ofVideoGrabber &cam;

};

A ten konstruktor:

CamFeed::CamFeed(ofVideoGrabber &cam) {
    this->cam = cam;
}

Dostaję ten błąd na konstruktorze:Konstruktor dla '' musi jawnie zainicjować element odniesienia ''

Jaki jest dobry sposób obejścia tego problemu?

questionAnswers(1)

yourAnswerToTheQuestion