E2004 __automated セクションのプロパティ宣言には read または write 節しか使用できない (C++)

提供: RAD Studio
移動先: 案内検索

コンパイラのエラーと警告(C++):インデックス への移動


__automated セクションのプロパティ宣言では,格納指定子 stored,default,nodefault を使用できません。

次に例を示します。



 struct__declspec(delphiclass) clxclass
 {
 int __fastcall Get(void);
 __automated:
 int __property ip1 = { read = Get };      // OK
 int __property ip2 = { read = Get, default = 42 }; // エラー
 };