description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C2082 | Compiler Error C2082 | 11/04/2016 |
|
| 87a6d442-157c-46e8-9bff-8388f8338ae0 |
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.cppvoidfunc(int num1) { int num1; // C2082int num2; // OKauto lambda1 = [](int num1){ int num1; }; // C2082auto lambda2 = [](int num1){ int num2; }; // OK }