This question already has an answer here:
Below code works without any error
class cls { public: cls() = delete; }; int main() { cls obj{}; }
When I make to cls obj; it gives a compile time error.
cls obj;
Aucun commentaire:
Enregistrer un commentaire