jeudi 25 février 2016

C++11's "default" can be only applied on special member functions?

I wonder if "default" only applies to special member functions, because if i try:

struct A{
   A(int, char)=default;
   int i;
   char c;
};

Compilation will fail. So I have this question. Any hints?

Aucun commentaire:

Enregistrer un commentaire