I'm creating a simple card game foundation and now I'm working on the class that creates objects that represent each player. There seems to be a problem with the constructor though: Constructor for 'Spelare' must explicitly initialize the reference member 'leken'
class Spelare {
public:
Spelare(Kortbunt& kortlek, bool ar_dator) {leken = kortlek; dator = ar_dator;} //Constructor
int spela();
private:
Kortbunt hand; //The cards in the players hand
Kortbunt& leken; //The cards on the table
const bool dator; //Is this player a computer?
};