编译器错误 C2777
每个属性只能指定一个“put”方法
属性 declspec 修饰符具有多个 put
属性。
以下示例生成 C2777:
// C2777.cpp
struct A {
__declspec(property(put=PutProp,put=PutPropToo)) // C2777
// try the following line instead
// __declspec(property(put=PutProp))
int prop;
int PutProp(void);
int PutPropToo(void);
};