已不再支援此瀏覽器。
請升級至 Microsoft Edge,以利用最新功能、安全性更新和技術支援。
二進位「運算子運算子」的型式參數太多
多載運算子有太多參數。
下列範例會產生 C2806:
// C2806.cpp // compile with: /c class X { public: X operator++ ( int, int ); // C2806 more than 1 parameter X operator++ ( int ); // OK } ;
此頁面對您有幫助嗎?