锘??xml version="1.0" encoding="utf-8" standalone="yes"?> Visual Studio 2005涓柊澧炰簡__super鍏抽敭瀛楋紝瀹冧唬琛ㄦ湰綾葷殑鍩虹被錛屽洜姝ゅ彲浠ュ儚涓嬮潰榪欐牱浣跨敤錛?/p>
struct B1 { struct B2 { void mf(char) {} struct D : B1, B2 { 瀹冭繕鍙互閰嶅悎using璇彞浣跨敤錛屾瘮濡倁sing __super::type_define;榪欐牱鐨勩?br />
]]>
Visual C++ 8涓殑__super鍏抽敭瀛?/p>
宸ヤ綔涓湅鍒板埆浜虹殑浠g爜鏈塤_super::SetWindowSize()榪欐牱鐨勪唬鐮侊紝鏌ヨ浜嗕竴涓嬪蹇樺湪榪欓噷銆?/p>
void mf(int) {}
};
void mf(short) {}
};
void mf(short) {
__super::mf(1); // Calls B1::mf(int)
__super::mf('s'); // Calls B2::mf(char)
}
};
]]>