【发布时间】:2011-01-03 00:49:15
【问题描述】:
根据MSDN doc on __interface,Visual C++ 接口“不能包含构造函数、析构函数或运算符。”
为什么接口不能包含操作符?返回引用的get方法之间有那么大的区别吗:
SomeType& Get(WORD wIndex);
还有重载的索引器操作符?
SomeType& operator[](WORD wIndex);
【问题讨论】:
标签: c++ visual-c++ interface operator-overloading