次の方法で共有


コンパイラ エラー C3264

'class': クラス コンストラクターに戻り値の型を指定することはできません

クラス コンストラクターに戻り値の型を指定することはできません。

次の例では 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() {
}