I get this error
error: field has incomplete type
when doing something like:
class MinhaClasse
{
MinhaClasse teste; // Erro aqui
};
I already tried to add this line at the beginning of the code class MinhaClasse;
, but it did not work.
I understand the error, but I do not know how I can resolve it.