diff --git a/docs/docfx.json b/docs/docfx.json index 1dd4d169a4..23b40c4fd3 100644 --- a/docs/docfx.json +++ b/docs/docfx.json @@ -160,100 +160,100 @@ "windows/**.md": "windows-development" }, "ms.update-cycle": { - "assembler/**.{md,yml}": "3650-days", - "attributes/**.{md,yml}": "3650-days", - "atl/**.{md,yml}": "3650-days", - "atl-mfc-shared/**.{md,yml}": "3650-days", - "build/**.{md,yml}": "1825-days", - "c-language/**.{md,yml}": "3650-days", - "c-runtime-library/**.{md,yml}": "3650-days", + "assembler/**/**.{md,yml}": "3650-days", + "attributes/**/**.{md,yml}": "3650-days", + "atl/**/**.{md,yml}": "3650-days", + "atl-mfc-shared/**/**.{md,yml}": "3650-days", + "build/**/**.{md,yml}": "1825-days", + "c-language/**/**.{md,yml}": "3650-days", + "c-runtime-library/**/**.{md,yml}": "3650-days", "cpp/**.md": "1095-days", - "cppcx/**.{md,yml}": "3650-days", - "cross-platform/**.{md,yml}": "1825-days", - "data/**.{md,yml}": "3650-days", - "dotnet/**.{md,yml}": "3650-days", - "embedded/**.{md,yml}": "3650-days", - "error-messages/**.{md,yml}": "3650-days", - "extensions/**.{md,yml}": "3650-days", - "intrinsics/**.{md,yml}": "3650-days", - "mfc/**.{md,yml}": "3650-days", - "parallel/**.{md,yml}": "3650-days", - "porting/**.{md,yml}": "1095-days", - "preprocessor/**.{md,yml}": "3650-days", - "safeint/**.{md,yml}": "3650-days", - "standard-library/**.{md,yml}": "3650-days", - "text/**.{md,yml}": "3650-days", - "windows/**.{md,yml}": "1825-days" + "cppcx/**/**.{md,yml}": "3650-days", + "cross-platform/**/**.{md,yml}": "1825-days", + "data/**/**.{md,yml}": "3650-days", + "dotnet/**/**.{md,yml}": "3650-days", + "embedded/**/**.{md,yml}": "3650-days", + "error-messages/**/**.{md,yml}": "3650-days", + "extensions/**/**.{md,yml}": "3650-days", + "intrinsics/**/**.{md,yml}": "3650-days", + "mfc/**/**.{md,yml}": "3650-days", + "parallel/**/**.{md,yml}": "3650-days", + "porting/**/**.{md,yml}": "1095-days", + "preprocessor/**/**.{md,yml}": "3650-days", + "safeint/**/**.{md,yml}": "3650-days", + "standard-library/**/**.{md,yml}": "3650-days", + "text/**/**.{md,yml}": "3650-days", + "windows/**/**.{md,yml}": "1825-days" }, "author": { "index.md": "tylermsft", - "assembler/**.{md,yml}": "tylermsft", - "attributes/**.{md,yml}": "tylermsft", - "atl/**.{md,yml}": "tylermsft", - "atl-mfc-shared/**.{md,yml}": "tylermsft", - "build/**.{md,yml}": "tylermsft", - "build-insights/**.{md,yml}": "tylermsft", - "c-language/**.{md,yml}": "tylermsft", - "c-runtime-library/**.{md,yml}": "tylermsft", - "cloud/**.{md,yml}": "tylermsft", - "code-quality/**.{md,yml}": "tylermsft", - "cpp/**.{md,yml}": "tylermsft", - "cppcx/**.{md,yml}": "tylermsft", - "cross-platform/**.{md,yml}": "tylermsft", - "data/**.{md,yml}": "tylermsft", - "dotnet/**.{md,yml}": "tylermsft", - "error-messages/**.{md,yml}": "tylermsft", - "extensions/**.{md,yml}": "tylermsft", - "get-started/**.{md,yml}": "tylermsft", - "ide/**.{md,yml}": "tylermsft", - "intrinsics/**.{md,yml}": "tylermsft", - "linux/**.{md,yml}": "tylermsft", - "mfc/**.{md,yml}": "tylermsft", - "overview/**.{md,yml}": "tylermsft", - "parallel/**.{md,yml}": "tylermsft", - "porting/**.{md,yml}": "tylermsft", - "preprocessor/**.{md,yml}": "tylermsft", - "safeint/**.{md,yml}": "tylermsft", - "sanitizers/**.{md,yml}": "tylermsft", - "security/**.{md,yml}": "tylermsft", - "standard-library/**.{md,yml}": "tylermsft", - "text/**.{md,yml}": "tylermsft", - "windows/**.{md,yml}": "tylermsft" + "assembler/**/**.{md,yml}": "tylermsft", + "attributes/**/**.{md,yml}": "tylermsft", + "atl/**/**.{md,yml}": "tylermsft", + "atl-mfc-shared/**/**.{md,yml}": "tylermsft", + "build/**/**.{md,yml}": "tylermsft", + "build-insights/**/**.{md,yml}": "tylermsft", + "c-language/**/**.{md,yml}": "tylermsft", + "c-runtime-library/**/**.{md,yml}": "tylermsft", + "cloud/**/**.{md,yml}": "tylermsft", + "code-quality/**/**.{md,yml}": "tylermsft", + "cpp/**/**.{md,yml}": "tylermsft", + "cppcx/**/**.{md,yml}": "tylermsft", + "cross-platform/**/**.{md,yml}": "tylermsft", + "data/**/**.{md,yml}": "tylermsft", + "dotnet/**/**.{md,yml}": "tylermsft", + "error-messages/**/**.{md,yml}": "tylermsft", + "extensions/**/**.{md,yml}": "tylermsft", + "get-started/**/**.{md,yml}": "tylermsft", + "ide/**/**.{md,yml}": "tylermsft", + "intrinsics/**/**.{md,yml}": "tylermsft", + "linux/**/**.{md,yml}": "tylermsft", + "mfc/**/**.{md,yml}": "tylermsft", + "overview/**/**.{md,yml}": "tylermsft", + "parallel/**/**.{md,yml}": "tylermsft", + "porting/**/**.{md,yml}": "tylermsft", + "preprocessor/**/**.{md,yml}": "tylermsft", + "safeint/**/**.{md,yml}": "tylermsft", + "sanitizers/**/**.{md,yml}": "tylermsft", + "security/**/**.{md,yml}": "tylermsft", + "standard-library/**/**.{md,yml}": "tylermsft", + "text/**/**.{md,yml}": "tylermsft", + "windows/**/**.{md,yml}": "tylermsft" }, "ms.author": { "index.md": "twhitney", - "assembler/**.{md,yml}": "twhitney", - "atl/**.{md,yml}": "twhitney", - "atl-mfc-shared/**.{md,yml}": "twhitney", - "attributes/**.{md,yml}": "twhitney", - "build/**.{md,yml}": "twhitney", - "build-insights/**.{md,yml}": "twhitney", - "c-language/**.{md,yml}": "twhitney", - "c-runtime-library/**.{md,yml}": "twhitney", - "cloud/**.{md,yml}": "twhitney", - "code-quality/**.{md,yml}": "twhitney", - "cpp/**.{md,yml}": "twhitney", - "cppcx/**.{md,yml}": "twhitney", - "cross-platform/**.{md,yml}": "twhitney", - "data/**.{md,yml}": "twhitney", - "dotnet/**.{md,yml}": "twhitney", - "error-messages/**.{md,yml}": "twhitney", - "extensions/**.{md,yml}": "twhitney", - "get-started/**.{md,yml}": "twhitney", - "ide/**.{md,yml}": "twhitney", - "intrinsics/**.{md,yml}": "twhitney", - "linux/**.{md,yml}": "twhitney", - "mfc/**.{md,yml}": "twhitney", - "overview/**.{md,yml}": "twhitney", - "parallel/**.{md,yml}": "twhitney", - "porting/**.{md,yml}": "twhitney", - "preprocessor/**.{md,yml}": "twhitney", - "safeint/**.{md,yml}": "twhitney", - "sanitizers/**.{md,yml}": "twhitney", - "security/**.{md,yml}": "twhitney", - "standard-library/**.{md,yml}": "twhitney", - "text/**.{md,yml}": "twhitney", - "windows/**.{md,yml}": "twhitney" + "assembler/**/**.{md,yml}": "twhitney", + "atl/**/**.{md,yml}": "twhitney", + "atl-mfc-shared/**/**.{md,yml}": "twhitney", + "attributes/**/**.{md,yml}": "twhitney", + "build/**/**.{md,yml}": "twhitney", + "build-insights/**/**.{md,yml}": "twhitney", + "c-language/**/**.{md,yml}": "twhitney", + "c-runtime-library/**/**.{md,yml}": "twhitney", + "cloud/**/**.{md,yml}": "twhitney", + "code-quality/**/**.{md,yml}": "twhitney", + "cpp/**/**.{md,yml}": "twhitney", + "cppcx/**/**.{md,yml}": "twhitney", + "cross-platform/**/**.{md,yml}": "twhitney", + "data/**/**.{md,yml}": "twhitney", + "dotnet/**/**.{md,yml}": "twhitney", + "error-messages/**/**.{md,yml}": "twhitney", + "extensions/**/**.{md,yml}": "twhitney", + "get-started/**/**.{md,yml}": "twhitney", + "ide/**/**.{md,yml}": "twhitney", + "intrinsics/**/**.{md,yml}": "twhitney", + "linux/**/**.{md,yml}": "twhitney", + "mfc/**/**.{md,yml}": "twhitney", + "overview/**/**.{md,yml}": "twhitney", + "parallel/**/**.{md,yml}": "twhitney", + "porting/**/**.{md,yml}": "twhitney", + "preprocessor/**/**.{md,yml}": "twhitney", + "safeint/**/**.{md,yml}": "twhitney", + "sanitizers/**/**.{md,yml}": "twhitney", + "security/**/**.{md,yml}": "twhitney", + "standard-library/**/**.{md,yml}": "twhitney", + "text/**/**.{md,yml}": "twhitney", + "windows/**/**.{md,yml}": "twhitney" } }, "template": [], diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2261.md b/docs/error-messages/compiler-errors-1/compiler-error-c2261.md index eb8bd54da2..3c27593063 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2261.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2261.md @@ -1,14 +1,15 @@ --- -description: "Learn more about: Compiler Error C2261" title: "Compiler Error C2261" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2261" +ms.date: 11/04/2016 f1_keywords: ["C2261"] helpviewer_keywords: ["C2261"] -ms.assetid: 60969482-9e83-49b5-9631-a04bc844da12 --- # Compiler Error C2261 -'string' : assembly reference is invalid and cannot be resolved +> 'string' : assembly reference is invalid and cannot be resolved + +## Remarks A value was not valid. @@ -18,7 +19,7 @@ For more on the correct syntax when specifying friend assemblies, see [Friend As ## Example -The following sample generates C2261. +The following example generates C2261. ```cpp // C2261.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2262.md b/docs/error-messages/compiler-errors-1/compiler-error-c2262.md index 8aa445522b..752d2409f8 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2262.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2262.md @@ -1,20 +1,21 @@ --- -description: "Learn more about: Compiler Error C2262" title: "Compiler Error C2262" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2262" +ms.date: 11/04/2016 f1_keywords: ["C2262"] helpviewer_keywords: ["C2262"] -ms.assetid: 727d1c6e-53e8-40e5-b7b8-6a7ac2011727 --- # Compiler Error C2262 -'attribute_specifiers' : InternalsVisibleTo declarations cannot have a version, culture, or processor architecture specified +> 'attribute_specifiers' : InternalsVisibleTo declarations cannot have a version, culture, or processor architecture specified + +## Remarks The attribute was not specified correctly. ## Example -The following sample generates C2262. +The following example generates C2262. ```cpp // C2262.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2264.md b/docs/error-messages/compiler-errors-1/compiler-error-c2264.md index e2e1dd617e..915f27a906 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2264.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2264.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2264" title: "Compiler Error C2264" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2264" +ms.date: 11/04/2016 f1_keywords: ["C2264"] helpviewer_keywords: ["C2264"] -ms.assetid: 158b72cc-cee9-4a08-bd79-b7a5955345a8 --- # Compiler Error C2264 -'function' : error in function definition or declaration; function not called +> 'function' : error in function definition or declaration; function not called + +## Remarks The function cannot be called due to an incorrect definition or declaration. -The following sample generates C2264: +## Example + +The following example generates C2264: ```cpp // C2264.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2266.md b/docs/error-messages/compiler-errors-1/compiler-error-c2266.md index 9fc181b416..ecd97db4e0 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2266.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2266.md @@ -1,13 +1,14 @@ --- -description: "Learn more about: Compiler Error C2266" title: "Compiler Error C2266" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2266" +ms.date: 11/04/2016 f1_keywords: ["C2266"] helpviewer_keywords: ["C2266"] -ms.assetid: 5c267a67-d5a1-4ad7-b6f7-a156510aee35 --- # Compiler Error C2266 -'identifier' : reference to a non-constant bounded array is illegal +> 'identifier' : reference to a non-constant bounded array is illegal + +## Remarks A reference is declared for an array with a nonconstant bound. The array must have constant bounds. diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2267.md b/docs/error-messages/compiler-errors-1/compiler-error-c2267.md index 4018e13c8c..2393a3ecdb 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2267.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2267.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2267" title: "Compiler Error C2267" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2267" +ms.date: 11/04/2016 f1_keywords: ["C2267"] helpviewer_keywords: ["C2267"] -ms.assetid: ea63bebb-6208-4367-8440-39be07f9c360 --- # Compiler Error C2267 -'function' : static functions with block scope are illegal +> 'function' : static functions with block scope are illegal + +## Remarks A local function is declared **`static`**. Static functions must have global scope. -The following sample generates C2267: +## Example + +The following example generates C2267: ```cpp // C2267.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2268.md b/docs/error-messages/compiler-errors-1/compiler-error-c2268.md index 8be9311197..6c77ca44b4 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2268.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2268.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2268" title: "Compiler Error C2268" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2268" +ms.date: 11/04/2016 f1_keywords: ["C2268"] helpviewer_keywords: ["C2268"] -ms.assetid: 0ed055c9-3c6f-4df2-a5b6-85cf0e01a249 --- # Compiler Error C2268 -'function' is a compiler predefined library helper. Library helpers are not supported with /GL; compile object file 'file' without /GL. +> 'function' is a compiler predefined library helper. Library helpers are not supported with /GL; compile object file 'file' without /GL. + +## Remarks A function defined in your source code has the same name as an internal compiler function. Compile the module containing the function without [/GL](../../build/reference/gl-whole-program-optimization.md). -The following sample generates C2268: +## Example + +The following example generates C2268: ```c // C2268.c diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2270.md b/docs/error-messages/compiler-errors-1/compiler-error-c2270.md index b19c40b8b2..d6400d6643 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2270.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2270.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2270" title: "Compiler Error C2270" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2270" +ms.date: 11/04/2016 f1_keywords: ["C2270"] helpviewer_keywords: ["C2270"] -ms.assetid: b52c068e-0b61-42e7-b775-4d57b3ddcba0 --- # Compiler Error C2270 -'function' : modifiers not allowed on nonmember functions +> 'function' : modifiers not allowed on nonmember functions + +## Remarks A nonmember function is declared with [const](../../cpp/const-cpp.md), [volatile](../../cpp/volatile-cpp.md), or another memory-model modifier. -The following sample generates C2270: +## Example + +The following example generates C2270: ```cpp // C2270.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2271.md b/docs/error-messages/compiler-errors-1/compiler-error-c2271.md index cb79055f4c..5cd706b293 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2271.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2271.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2271" title: "Compiler Error C2271" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2271" +ms.date: 11/04/2016 f1_keywords: ["C2271"] helpviewer_keywords: ["C2271"] -ms.assetid: ea47bf57-f55d-4171-8e98-95a71d62820e --- # Compiler Error C2271 -'operator' : new/delete cannot have formal list modifiers +> 'operator' : new/delete cannot have formal list modifiers + +## Remarks The operator (**`new`** or **`delete`**) is declared with a memory-model specifier. -The following sample generates C2271: +## Example + +The following example generates C2271: ```cpp // C2271.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2272.md b/docs/error-messages/compiler-errors-1/compiler-error-c2272.md index a47e01e02a..b8915aeab7 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2272.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2272.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2272" title: "Compiler Error C2272" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2272" +ms.date: 11/04/2016 f1_keywords: ["C2272"] helpviewer_keywords: ["C2272"] -ms.assetid: 1517706a-9c27-452e-9b10-3424b3d232bc --- # Compiler Error C2272 -'function' : modifiers not allowed on static member functions +> 'function' : modifiers not allowed on static member functions + +## Remarks A **`static`** member function is declared with a memory-model specifier, such as [const](../../cpp/const-cpp.md) or [volatile](../../cpp/volatile-cpp.md), and such modifiers are not allowed on **`static`** member functions. -The following sample generates C2272: +## Example + +The following example generates C2272: ```cpp // C2272.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2273.md b/docs/error-messages/compiler-errors-1/compiler-error-c2273.md index 2000e990c3..c1bc46a2c6 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2273.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2273.md @@ -1,20 +1,23 @@ --- -description: "Learn more about: Compiler Error C2273" title: "Compiler Error C2273" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2273" +ms.date: 11/04/2016 f1_keywords: ["C2273"] helpviewer_keywords: ["C2273"] -ms.assetid: 3c682c66-97bf-4a23-a22c-d9a26a92bf95 --- # Compiler Error C2273 -'type' : illegal as right side of '->' operator +> 'type' : illegal as right side of '->' operator + +## Remarks A type appears as the right operand of a `->` operator. This error can be caused by trying to access a user-defined type conversion. Use the keyword **`operator`** between -> and `type`. -The following sample generates C2273: +## Example + +The following example generates C2273: ```cpp // C2273.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2274.md b/docs/error-messages/compiler-errors-1/compiler-error-c2274.md index 52cd5d4fca..67e054c561 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2274.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2274.md @@ -1,20 +1,23 @@ --- -description: "Learn more about: Compiler Error C2274" title: "Compiler Error C2274" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2274" +ms.date: 11/04/2016 f1_keywords: ["C2274"] helpviewer_keywords: ["C2274"] -ms.assetid: 8e874903-f499-45ef-8291-f821eee4cc1c --- # Compiler Error C2274 -'type' : illegal as right side of '.' operator +> 'type' : illegal as right side of '.' operator + +## Remarks A type appears as the right operand of a member-access (.) operator. This error can be caused by trying to access a user-defined type conversion. Use the keyword **`operator`** between the period and `type`. -The following sample generates C2286: +## Example + +The following example generates C2286: ```cpp // C2274.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2275.md b/docs/error-messages/compiler-errors-1/compiler-error-c2275.md index 5398ae9154..b4a3a21d31 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2275.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2275.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2275" title: "Compiler Error C2275" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2275" +ms.date: 11/04/2016 f1_keywords: ["C2275"] helpviewer_keywords: ["C2275"] -ms.assetid: c1eafa71-48de-46e0-82f3-b575538ef205 --- # Compiler Error C2275 -'identifier' : illegal use of this type as an expression +> 'identifier' : illegal use of this type as an expression + +## Remarks An expression uses the `->` operator with a **`typedef`** identifier. -The following sample generates C2275: +## Example + +The following example generates C2275: ```cpp // C2275.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2276.md b/docs/error-messages/compiler-errors-1/compiler-error-c2276.md index b6fe542bb7..e583d2541c 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2276.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2276.md @@ -1,6 +1,6 @@ --- -description: "Learn more about: Compiler Error C2276" title: "Compiler Error C2276" +description: "Learn more about: Compiler Error C2276" ms.date: 03/25/2021 f1_keywords: ["C2276"] helpviewer_keywords: ["C2276"] @@ -9,15 +9,15 @@ helpviewer_keywords: ["C2276"] > '*operator*' : illegal operation on bound member function expression -The compiler found a problem with the syntax used to create a pointer-to-member. - ## Remarks +The compiler found a problem with the syntax used to create a pointer-to-member. + Error `C2276` is often caused when you attempt to create a pointer-to-member by using an instance variable to qualify the member, instead of a class type. You may also see this error if you're trying to call a member function by using the wrong syntax. ## Example -This sample shows several ways C2276 may occur, and how to fix them: +This example shows several ways C2276 may occur, and how to fix them: ```cpp // C2276.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2277.md b/docs/error-messages/compiler-errors-1/compiler-error-c2277.md index f1aef2b07f..1f56b60b30 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2277.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2277.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2277" title: "Compiler Error C2277" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2277" +ms.date: 11/04/2016 f1_keywords: ["C2277"] helpviewer_keywords: ["C2277"] -ms.assetid: 15a83b07-8731-4524-810b-267f65a7844f --- # Compiler Error C2277 -'identifier' : cannot take address of this member function +> 'identifier' : cannot take address of this member function + +## Remarks You cannot take the address of a member function. -The following sample generates C2277: +## Example + +The following example generates C2277: ```cpp // C2277.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2279.md b/docs/error-messages/compiler-errors-1/compiler-error-c2279.md index b7df615fbd..0591321c48 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2279.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2279.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2279" title: "Compiler Error C2279" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2279" +ms.date: 11/04/2016 f1_keywords: ["C2279"] helpviewer_keywords: ["C2279"] -ms.assetid: 1b5c88ef-2336-49b8-9ddb-d61f97c73e14 --- # Compiler Error C2279 -exception specification cannot appear in a typedef declaration +> exception specification cannot appear in a typedef declaration + +## Remarks Under **/Za**, [exception specifications](../../cpp/exception-specifications-throw-cpp.md) are not allowed in a typedef declaration. -The following sample generates C2279: +## Example + +The following example generates C2279: ```cpp // C2279.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2280.md b/docs/error-messages/compiler-errors-1/compiler-error-c2280.md index c438dc7138..c952f212b5 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2280.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2280.md @@ -1,14 +1,15 @@ --- -description: "Learn more about: Compiler Error C2280" title: "Compiler Error C2280" -ms.date: "04/25/2017" +description: "Learn more about: Compiler Error C2280" +ms.date: 04/25/2017 f1_keywords: ["C2280"] helpviewer_keywords: ["C2280"] -ms.assetid: e6c5b1fb-2b9b-4554-8ff9-775eeb37161b --- # Compiler Error C2280 -'*declaration*': attempting to reference a deleted function +> '*declaration*': attempting to reference a deleted function + +## Remarks The compiler detected an attempt to reference a `deleted` function. This error can be caused by a call to a member function that has been explicitly marked as `= deleted` in the source code. This error can also be caused by a call to an implicit special member function of a struct or class that is automatically declared and marked as `deleted` by the compiler. For more information about when the compiler automatically generates **`default`** or `deleted` special member functions, see [Special member functions](../../cpp/special-member-functions.md). diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2283.md b/docs/error-messages/compiler-errors-1/compiler-error-c2283.md index 52b1375800..8f402a366e 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2283.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2283.md @@ -1,7 +1,7 @@ --- title: "Compiler Error C2283" description: "Learn more about: Compiler Error C2283" -ms.date: "11/04/2016" +ms.date: 11/04/2016 f1_keywords: ["C2283"] helpviewer_keywords: ["C2283"] --- @@ -9,9 +9,13 @@ helpviewer_keywords: ["C2283"] > '*identifier*': pure specifier or abstract override specifier not allowed on unnamed struct +## Remarks + A member function of an unnamed class or structure is declared with a pure specifier, which is not permitted. -The following sample generates C2283: +## Example + +The following example generates C2283: ```cpp // C2283.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2285.md b/docs/error-messages/compiler-errors-1/compiler-error-c2285.md index cb7c1d60c9..d11de7e744 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2285.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2285.md @@ -1,13 +1,14 @@ --- -description: "Learn more about: Compiler Error C2285" title: "Compiler Error C2285" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2285" +ms.date: 11/04/2016 f1_keywords: ["C2285"] helpviewer_keywords: ["C2285"] -ms.assetid: 7b40a1b0-f477-49fa-b762-c3bccd88514e --- # Compiler Error C2285 -pointers to members representation has already been determined - pragma ignored +> pointers to members representation has already been determined - pragma ignored + +## Remarks Two different representations exist for class. diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2286.md b/docs/error-messages/compiler-errors-1/compiler-error-c2286.md index 8479291e54..81e52facd8 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2286.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2286.md @@ -1,14 +1,15 @@ --- -description: "Learn more about: Compiler Error C2286" title: "Compiler Error C2286" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2286" +ms.date: 11/04/2016 f1_keywords: ["C2286"] helpviewer_keywords: ["C2286"] -ms.assetid: 078e0201-35cc-42e2-8dbc-6f8cf557b098 --- # Compiler Error C2286 -pointers to members of 'identifier' representation is already set to 'inheritance' - declaration ignored +> pointers to members of 'identifier' representation is already set to 'inheritance' - declaration ignored + +## Remarks Two different pointer-to-members representations exist for class. @@ -16,7 +17,7 @@ For more information, see [Inheritance Keywords](../../cpp/inheritance-keywords. ## Example -The following sample generates C2286: +The following example generates C2286: ```cpp // C2286.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2287.md b/docs/error-messages/compiler-errors-1/compiler-error-c2287.md index 178c7c0076..5028b594ce 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2287.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2287.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2287" title: "Compiler Error C2287" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2287" +ms.date: 11/04/2016 f1_keywords: ["C2287"] helpviewer_keywords: ["C2287"] -ms.assetid: 64556299-4e1f-4437-88b7-2464fc0b95bb --- # Compiler Error C2287 -'class': inheritance representation: 'representation1' is less general than the required 'representation2' +> 'class': inheritance representation: 'representation1' is less general than the required 'representation2' + +## Remarks A class is declared with a simpler representation than required. -The following sample generates C2287: +## Example + +The following example generates C2287: ```cpp // C2287.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2289.md b/docs/error-messages/compiler-errors-1/compiler-error-c2289.md index 485af60194..dd43552c14 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2289.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2289.md @@ -1,18 +1,21 @@ --- -description: "Learn more about: Compiler Error C2289" title: "Compiler Error C2289" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2289" +ms.date: 11/04/2016 f1_keywords: ["C2289"] helpviewer_keywords: ["C2289"] -ms.assetid: cb41a29e-1b06-47dc-bfce-8d73bd63a0df --- # Compiler Error C2289 -same type qualifier used more than once +> same type qualifier used more than once + +## Remarks A type declaration or definition uses a type qualifier (**`const`**, **`volatile`**, **`signed`**, or **`unsigned`**) more than once, causing an error under ANSI compatibility (**/Za**). -The following sample generates C2286: +## Example + +The following example generates C2286: ```cpp // C2289.cpp diff --git a/docs/error-messages/compiler-errors-1/compiler-error-c2290.md b/docs/error-messages/compiler-errors-1/compiler-error-c2290.md index f69fdf273c..5742c5e234 100644 --- a/docs/error-messages/compiler-errors-1/compiler-error-c2290.md +++ b/docs/error-messages/compiler-errors-1/compiler-error-c2290.md @@ -1,13 +1,14 @@ --- -description: "Learn more about: Compiler Error C2290" title: "Compiler Error C2290" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2290" +ms.date: 11/04/2016 f1_keywords: ["C2290"] helpviewer_keywords: ["C2290"] -ms.assetid: 78c0feec-ccde-401b-8335-5b6ea6be8a13 --- # Compiler Error C2290 -C++ asm syntax ignored. Use __asm. +> C++ asm syntax ignored. Use __asm. + +## Remarks The **`asm`** syntax is reserved for future use.