You are viewing an older revision! See the latest version

Compiler Error 366/

« Compiler-Error-366

This error appears to be shown when an initializer is missing.

In my case, I had defined a reference variable thus:

class X 
{
   int &val;
   int val2;

   X() : val2(3)
   {
   }
}

The error is because I didn't initialize the member 'val' in the constructor.


All wikipages