Compiler Error C2082
redefinition of formal parameter 'identifier'
A formal parameter to a function is redeclared within the function body. To resolve the error, remove the redefinition.
The following sample generates C2082:
// C2082.cpp
void func(int num1) {
int num1; // C2082
int num2; // OK
auto lambda1 = [](int num1){ int num1; }; // C2082
auto lambda2 = [](int num1){ int num2; }; // OK
}
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ