Skip to content

Commit 25aa1d2

Browse files
committed
Learn Editor: Update compiler-errors-c3400-through-c3499.md
1 parent 8a08963 commit 25aa1d2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/error-messages/compiler-errors-2/compiler-errors-c3400-through-c3499.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The articles in this section of the documentation explain a subset of the error
4343
| Compiler error C3425 | cannot throw pointer to object of incomplete type '*type*' |
4444
| Compiler error C3426 | cannot throw object of incomplete type '*type*' |
4545
| Compiler error C3427 | '*context*': '*keyword*' cannot be used with layout_version(*number*) |
46-
| Compiler error C3428 | '*context*': '*keyword*' can only be applied to class declarations or definitions |
46+
| Compiler error C3428 | '`__declspec(`*keyword*`)`' can only be applied to class declarations or definitions |
4747
| Compiler error C3429 | '*context*': '*keyword*' cannot be applied to a union |
4848
| Compiler error C3430 | a scoped enumeration must have a name |
4949
| Compiler error C3431 | '*identifier*': *type1* cannot be redeclared as *type2* |
@@ -92,8 +92,8 @@ The articles in this section of the documentation explain a subset of the error
9292
| Compiler error C3474 | could not open output file '*filename*' |
9393
| Compiler error C3475 | syntax error in input file '*filename*' |
9494
| Compiler error C3476 | could not open file '*filename*' for input |
95-
| Compiler error C3477 | a lambda cannot appear in an unevaluated context |
96-
| Compiler error C3478 | '*identifier*': an array cannot be captured by copy |
95+
| Compiler error C3477 | a lambda can only appear in an unevaluated context with '*C++ version*' or later |
96+
| Compiler error C3478 | '*identifier*': an array of unknown bounds cannot be captured by copy |
9797
| Compiler error C3479 | SAL annotations on lambdas are not supported |
9898
| [Compiler error C3480](compiler-error-c3480.md) | '*variable*': a lambda capture variable must be from an enclosing function scope |
9999
| [Compiler error C3481](compiler-error-c3481.md) | '*identifier*': lambda capture variable not found |
@@ -103,16 +103,16 @@ The articles in this section of the documentation explain a subset of the error
103103
| [Compiler error C3485](compiler-error-c3485.md) | a lambda definition cannot have any cv-qualifiers (Obsolete in Visual Studio 2022.) |
104104
| Compiler error C3486 | a parameter for a lambda cannot have a default argument (Obsolete in Visual Studio 2022.) |
105105
| [Compiler error C3487](compiler-error-c3487.md) | '*type*': all return expressions must deduce to the same type: previously it was '*type*' |
106-
| [Compiler error C3488](compiler-error-c3488.md) | '&*identifier*' is not allowed when the default capture mode is by-reference |
107-
| [Compiler error C3489](compiler-error-c3489.md) | '&*identifier*' is required when the default capture mode is by copy |
106+
| [Compiler error C3488](compiler-error-c3488.md) | '`&`*identifier*' cannot be explicitly captured when the default capture mode is by reference (`&`) |
107+
| [Compiler error C3489](compiler-error-c3489.md) | '`&`*identifier*' is required when the default capture mode is by copy (`=`) |
108108
| [Compiler error C3490](compiler-error-c3490.md) | '*identifier*' cannot be modified because it is being accessed through a const object |
109109
| [Compiler error C3491](compiler-error-c3491.md) | '*identifier*': a by copy capture cannot be modified in a non-mutable lambda |
110110
| [Compiler error C3492](compiler-error-c3492.md) | '*identifier*': you cannot capture a member of an anonymous union |
111111
| [Compiler error C3493](compiler-error-c3493.md) | '*identifier*' cannot be implicitly captured because no default capture mode has been specified |
112112
| Compiler error C3494 | 'this' cannot be explicitly captured because an enclosing capture mode does not allow it |
113-
| [Compiler error C3495](compiler-error-c3495.md) | '*identifier*': identifier in capture must be a variable with automatic storage duration declared in the reaching scope of the lambda |
114-
| [Compiler error C3496](compiler-error-c3496.md) | 'this' is always captured by value: '&' ignored |
115-
| Compiler error C3497 | you cannot construct an instance of a lambda |
113+
| [Compiler error C3495](compiler-error-c3495.md) | '*identifier*': a simple capture must be a variable with automatic storage duration declared in the reaching scope of the lambda |
114+
| [Compiler error C3496](compiler-error-c3496.md) | '`this`' is always captured by copy: '`&`' ignored |
115+
| Compiler error C3497 | cannot construct an instance of this lambda |
116116
| [Compiler error C3498](compiler-error-c3498.md) | '*identifier*': you cannot capture a variable that has a managed/WinRT type |
117117
| [Compiler error C3499](compiler-error-c3499.md) | a lambda that has been specified to have a void return type cannot return a value |
118118

0 commit comments

Comments
 (0)