Udostępnij przez


Błąd kompilatora C3264

"class" : konstruktor klasy nie może mieć typu zwracanego

Uwagi

Konstruktory klas nie mogą mieć typów zwracanych.

Example

Poniższy przykład generuje 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() {
}