Sdílet prostřednictvím


Chyba kompilátoru C3264

'class' : Konstruktor třídy nemůže mít návratový typ.

Poznámky

Konstruktory tříd nemohou mít návratové typy.

Example

Následující příklad vygeneruje C3264:

// C3264_2.cpp
// compile with: /clr

ref class X {
   public:
      static int X()   { // C3264
      }

      /* use the code below to resolve the error
      static X() {
      }
      */
};
int main() {
}