jeudi 14 juin 2018

Why I get this warning? "Member 'x' was not initialized in this constructor"

given the following code:

class Class {
    int x;
public:
    Class() = default;
};  

I get the following warning:

Member 'x' was not initialized in this constructor

What is the reason of this warning?

Aucun commentaire:

Enregistrer un commentaire