หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
using-declaration causes a multiple declaration of 'symbol'
Remarks
The declaration causes the same item to be defined twice.
Example
The following example generates C2874:
// C2874.cpp
namespace Z {
int i;
}
int main() {
int i;
using Z::i; // C2874, i already declared
}