diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2854.md b/docs/error-messages/compiler-errors-2/compiler-error-c2854.md
index f4c3ab89de..881fa57914 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2854.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2854.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2854"
title: "Compiler Error C2854"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2854"
+ms.date: 11/04/2016
f1_keywords: ["C2854"]
helpviewer_keywords: ["C2854"]
-ms.assetid: 917fec9c-790a-4149-8dfc-00d17a09199c
---
# Compiler Error C2854
-syntax error in #pragma hdrstop
+> syntax error in #pragma hdrstop
+
+## Remarks
The `#pragma hdrstop` gives an invalid filename. The pragma can be followed by an optional filename in parentheses and quotation marks:
-The following sample generates C2854:
+## Example
+
+The following example generates C2854:
```cpp
// C2854.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2855.md b/docs/error-messages/compiler-errors-2/compiler-error-c2855.md
index c67e56ab23..03760f6647 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2855.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2855.md
@@ -1,6 +1,6 @@
---
-description: "Learn more about: Compiler Error C2855"
title: "Compiler Error C2855"
+description: "Learn more about: Compiler Error C2855"
ms.date: 02/16/2021
f1_keywords: ["C2855"]
helpviewer_keywords: ["C2855"]
@@ -9,10 +9,10 @@ helpviewer_keywords: ["C2855"]
> command-line option '*option*' inconsistent with precompiled header
-This error occurs when a command-line option differs from the options used to create the precompiled header.
-
## Remarks
+This error occurs when a command-line option differs from the options used to create the precompiled header.
+
Error C2855 can occur when you make an incremental build after changing a compiler option. It can also happen if you set specific compiler options for individual source files.
To resolve this error, regenerate the precompiled header by using the specified command-line option. To regenerate the precompiled header, build the associated source file. For example, projects created by a Visual Studio template usually create a source file named *`pch.cpp`* to generate the precompiled header. (In older versions of Visual Studio, this file is named *`stdafx.cpp`*.) In other projects, the source file to rebuild is the one built by using the [`/Yc` (Create precompiled header file)](../../build/reference/yc-create-precompiled-header-file.md) compiler option. We recommend you rebuild your entire project after making a change to the precompiled header.
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2856.md b/docs/error-messages/compiler-errors-2/compiler-error-c2856.md
index 900d8c6d6a..1a6f8ec7dd 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2856.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2856.md
@@ -1,14 +1,15 @@
---
-description: "Learn more about: Compiler Error C2856"
title: "Compiler Error C2856"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2856"
+ms.date: 11/04/2016
f1_keywords: ["C2856"]
helpviewer_keywords: ["C2856"]
-ms.assetid: fe616c51-124e-49e3-9dd8-883ec1660680
---
# Compiler Error C2856
-\#pragma hdrstop cannot be inside an #if block
+> #pragma hdrstop cannot be inside an #if block
+
+## Remarks
The `hdrstop` pragma cannot be placed inside the body of a conditional compilation block.
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2857.md b/docs/error-messages/compiler-errors-2/compiler-error-c2857.md
index 8b8572462b..f81d9f0652 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2857.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2857.md
@@ -1,26 +1,25 @@
---
-description: "Learn more about: Compiler Error C2857"
title: "Compiler Error C2857"
-ms.date: "09/13/2018"
+description: "Learn more about: Compiler Error C2857"
+ms.date: 09/13/2018
f1_keywords: ["C2857"]
helpviewer_keywords: ["C2857"]
-ms.assetid: b57302bd-58ec-45ae-992a-1e282d5eeccc
---
# Compiler Error C2857
> '#include' statement specified with the /Yc*filename* command-line option was not found in the source file
-The [/Yc](../../build/reference/yc-create-precompiled-header-file.md) option specifies the name of an include file that is not included in the source file being compiled.
-
## Remarks
+The [/Yc](../../build/reference/yc-create-precompiled-header-file.md) option specifies the name of an include file that is not included in the source file being compiled.
+
When you use the **/Yc**filename option on a source file to create a precompiled header (PCH) file, that source file must include the *filename* header file. Every file included by the source file, up to and including the specified *filename*, is included in the PCH file. In other source files compiled by using the **/Yu**filename option to use the PCH file, an include of *filename* must be the first non-comment line in the file. The compiler ignores anything in the source file before this include.
This error can be caused by an `#include "filename"` statement in a conditional compilation block that is not compiled in your PCH source file.
## Example
-In typical usage, one source file in your project is designated as the PCH source file, and one header file is used as the PCH header file. A typical PCH header file has all of the library headers used in your project, but not local headers that are still under development. In this sample, the PCH header file is named *my_pch.h*.
+In typical usage, one source file in your project is designated as the PCH source file, and one header file is used as the PCH header file. A typical PCH header file has all of the library headers used in your project, but not local headers that are still under development. In this example, the PCH header file is named *my_pch.h*.
```cpp
// my_pch.h
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2858.md b/docs/error-messages/compiler-errors-2/compiler-error-c2858.md
index 5c73c903ae..5779b92df9 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2858.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2858.md
@@ -1,15 +1,16 @@
---
-description: "Learn more about: Compiler Error C2858"
title: "Compiler Error C2858"
+description: "Learn more about: Compiler Error C2858"
ms.date: 06/01/2022
f1_keywords: ["C2858"]
helpviewer_keywords: ["C2858"]
-ms.assetid: 1fb1d770-307e-476e-9984-a1d8f8ce2820
---
# Compiler Error C2858
> command-line option '/Yc (/Fd*filename1*)' inconsistent with precompiled header, which used '/Fd*filename2*'
+## Remarks
+
The program database specified by the Use Precompiled Header ([`/Yu`](../../build/reference/yu-use-precompiled-header-file.md)) option is not the one specified by the previous Create Precompiled Header ([`/Yc`](../../build/reference/yc-create-precompiled-header-file.md)) option.
This error is obsolete in Visual Studio 2022 and later versions.
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2859.md b/docs/error-messages/compiler-errors-2/compiler-error-c2859.md
index 10dbcd0e84..5d2a5e941e 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2859.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2859.md
@@ -1,14 +1,15 @@
---
-description: "Learn more about: Compiler Error C2859"
title: "Compiler Error C2859"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2859"
+ms.date: 11/04/2016
f1_keywords: ["C2859"]
helpviewer_keywords: ["C2859"]
-ms.assetid: fcfbc58d-08f6-4752-9688-8aaac517e684
---
# Compiler Error C2859
-filename is not the type file that was used when this precompiled header was created, recreate the precompiled header.
+> filename is not the type file that was used when this precompiled header was created, recreate the precompiled header.
+
+## Remarks
The project database and precompiled header files must be created together to ensure consistent information. Rebuild the project to recreate the precompiled header.
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2860.md b/docs/error-messages/compiler-errors-2/compiler-error-c2860.md
index 5d0d595820..3ac684a3f2 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2860.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2860.md
@@ -1,17 +1,21 @@
---
-description: "Learn more about: Compiler Error C2860"
title: "Compiler Error C2860"
-ms.date: "03/16/2024"
+description: "Learn more about: Compiler Error C2860"
+ms.date: 03/16/2024
f1_keywords: ["C2860"]
helpviewer_keywords: ["C2860"]
---
# Compiler Error C2860
-'void' cannot be used as a function parameter except for '(void)'
+> 'void' cannot be used as a function parameter except for '(void)'
+
+## Remarks
A function parameter cannot be of type **`void`**.
-The following sample generates C2860:
+## Example
+
+The following example generates C2860:
```cpp
// C2860.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2861.md b/docs/error-messages/compiler-errors-2/compiler-error-c2861.md
index 2a03308508..eeba808fa0 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2861.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2861.md
@@ -1,20 +1,21 @@
---
-description: "Learn more about: Compiler Error C2861"
title: "Compiler Error C2861"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2861"
+ms.date: 11/04/2016
f1_keywords: ["C2861"]
helpviewer_keywords: ["C2861"]
-ms.assetid: 012bb44d-6c9b-4def-b54e-b19f1f8ddd1b
---
# Compiler Error C2861
-'function name' : an interface member function cannot be defined
+> 'function name' : an interface member function cannot be defined
+
+## Remarks
The compiler encountered the interface keyword or deduced a struct as an interface but then found a member function definition. An interface cannot contain a definition for a member function.
## Example
-The following sample generates C2861:
+The following example generates C2861:
```cpp
// C2861.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2862.md b/docs/error-messages/compiler-errors-2/compiler-error-c2862.md
index 1e293348d2..ccef63bbcf 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2862.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2862.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2862"
title: "Compiler Error C2862"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2862"
+ms.date: 11/04/2016
f1_keywords: ["C2862"]
helpviewer_keywords: ["C2862"]
-ms.assetid: c04d8499-b799-48a1-9fb4-7902a0b0ac8e
---
# Compiler Error C2862
-'interface' : an interface can only have public members
+> 'interface' : an interface can only have public members
+
+## Remarks
Protected and private members may be accessed only from other member functions. Such members are no use in an interface, since it may not provide implementations for any of its members.
-The following sample will generate C2862:
+## Example
+
+The following example will generate C2862:
```cpp
// C2862.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2863.md b/docs/error-messages/compiler-errors-2/compiler-error-c2863.md
index 5df82ef31b..dbd762cdf7 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2863.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2863.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2863"
title: "Compiler Error C2863"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2863"
+ms.date: 11/04/2016
f1_keywords: ["C2863"]
helpviewer_keywords: ["C2863"]
-ms.assetid: 32561d67-a795-486b-b3b6-4b90a1acb176
---
# Compiler Error C2863
-'interface' : an interface cannot have friends
+> 'interface' : an interface cannot have friends
+
+## Remarks
Declaring friends on an interface is not allowed.
-The following sample generates C2863:
+## Example
+
+The following example generates C2863:
```cpp
// C2863.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2864.md b/docs/error-messages/compiler-errors-2/compiler-error-c2864.md
index 9dd8b4fe30..950b3a8bac 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2864.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2864.md
@@ -1,10 +1,9 @@
---
-description: "Learn more about: Compiler Error C2864"
title: "Compiler Error C2864"
+description: "Learn more about: Compiler Error C2864"
ms.date: 10/04/2019
f1_keywords: ["C2864"]
helpviewer_keywords: ["C2864"]
-ms.assetid: d0ca2ad9-90a6-4aef-8511-98a3b414c102
---
# Compiler Error C2864
@@ -16,7 +15,7 @@ To initialize a **`static`** data member that's defined as **`volatile`**, non-*
## Example
-This sample generates C2864:
+This example generates C2864:
```cpp
// C2864.cpp
@@ -32,7 +31,7 @@ private:
};
```
-This sample shows how to fix C2864:
+This example shows how to fix C2864:
```cpp
// C2864b.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2865.md b/docs/error-messages/compiler-errors-2/compiler-error-c2865.md
index 798e14910e..1f9f9040df 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2865.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2865.md
@@ -1,14 +1,15 @@
---
-description: "Learn more about: Compiler Error C2865"
title: "Compiler Error C2865"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2865"
+ms.date: 11/04/2016
f1_keywords: ["C2865"]
helpviewer_keywords: ["C2865"]
-ms.assetid: 973eb6a0-c99a-4d25-b3e5-fe0539794d77
---
# Compiler Error C2865
-'function' : illegal comparison for handle_or_pointer
+> 'function' : illegal comparison for handle_or_pointer
+
+## Remarks
You can compare references to [Classes and Structs](../../extensions/classes-and-structs-cpp-component-extensions.md) or managed reference types only for equality to see if they refer to the same object (==) or to different objects (!=).
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2867.md b/docs/error-messages/compiler-errors-2/compiler-error-c2867.md
index 5a5373bccc..6f82ffe305 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2867.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2867.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2867"
title: "Compiler Error C2867"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2867"
+ms.date: 11/04/2016
f1_keywords: ["C2867"]
helpviewer_keywords: ["C2867"]
-ms.assetid: 63be26b2-d9ab-4f3d-a8b7-981ce3e4d6b9
---
# Compiler Error C2867
-'identifier' : is not a namespace
+> 'identifier' : is not a namespace
+
+## Remarks
A **`using`** directive is applied to something other than a namespace.
-The following sample generates C2867:
+## Example
+
+The following example generates C2867:
```cpp
// C2867.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2868.md b/docs/error-messages/compiler-errors-2/compiler-error-c2868.md
index 3c9e74506e..aace8ea2a2 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2868.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2868.md
@@ -1,20 +1,21 @@
---
-description: "Learn more about: Compiler Error C2868"
title: "Compiler Error C2868"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2868"
+ms.date: 11/04/2016
f1_keywords: ["C2868"]
helpviewer_keywords: ["C2868"]
-ms.assetid: 6ff5837b-e66d-44d1-9d17-80af35e08d08
---
# Compiler Error C2868
> '*identifier*' : illegal syntax for using-declaration; expected qualified-name
+## Remarks
+
A [using declaration](../../cpp/using-declaration.md) requires a *qualified name*, a scope-operator (`::`) separated sequence of namespace, class, or enumeration names that ends with the identifier name. A single scope resolution operator may be used to introduce a name from the global namespace.
## Example
-The following sample generates C2868 and also shows correct usage:
+The following example generates C2868 and also shows correct usage:
```cpp
// C2868.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2869.md b/docs/error-messages/compiler-errors-2/compiler-error-c2869.md
index e42f10940a..74243dc953 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2869.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2869.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2869"
title: "Compiler Error C2869"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2869"
+ms.date: 11/04/2016
f1_keywords: ["C2869"]
helpviewer_keywords: ["C2869"]
-ms.assetid: 6e30c001-47f3-4101-b9f1-cc542c9fffae
---
# Compiler Error C2869
-'name' : has already been defined to be a namespace
+> 'name' : has already been defined to be a namespace
+
+## Remarks
You cannot reuse a name already used as a namespace.
-The following sample generates C2869:
+## Example
+
+The following example generates C2869:
```cpp
// C2869.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2870.md b/docs/error-messages/compiler-errors-2/compiler-error-c2870.md
index 47ea940abc..0aa1c8d1cc 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2870.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2870.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2870"
title: "Compiler Error C2870"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2870"
+ms.date: 11/04/2016
f1_keywords: ["C2870"]
helpviewer_keywords: ["C2870"]
-ms.assetid: 80523ee9-1fd3-4dc4-8a77-5083deb99066
---
# Compiler Error C2870
-'name' : a namespace definition must appear either at file scope or immediately within another namespace definition
+> 'name' : a namespace definition must appear either at file scope or immediately within another namespace definition
+
+## Remarks
You defined namespace `name` incorrectly. Namespaces must be defined at file scope (outside all blocks and classes) or immediately within another namespace.
-The following sample generates C2870:
+## Example
+
+The following example generates C2870:
```cpp
// C2870.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2871.md b/docs/error-messages/compiler-errors-2/compiler-error-c2871.md
index 2e451cbade..c3261549f3 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2871.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2871.md
@@ -1,20 +1,21 @@
---
-description: "Learn more about: Compiler Error C2871"
title: "Compiler Error C2871"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2871"
+ms.date: 11/04/2016
f1_keywords: ["C2871"]
helpviewer_keywords: ["C2871"]
-ms.assetid: 44aeb84d-61f0-45e0-8dad-22a3cd46b7f8
---
# Compiler Error C2871
-'name' : a namespace with this name does not exist
+> 'name' : a namespace with this name does not exist
+
+## Remarks
This error will occur when you pass an identifier that is not a namespace to a [using](../../cpp/namespaces-cpp.md#using_directives) directive.
## Example
-The following sample generates C2871:
+The following example generates C2871:
```cpp
// C2871.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2872.md b/docs/error-messages/compiler-errors-2/compiler-error-c2872.md
index 8c90fb01c0..9e5f59ead0 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2872.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2872.md
@@ -1,14 +1,15 @@
---
-description: "Learn more about: Compiler Error C2872"
title: "Compiler Error C2872"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2872"
+ms.date: 11/04/2016
f1_keywords: ["C2872"]
helpviewer_keywords: ["C2872"]
-ms.assetid: c619ef97-6e0e-41d7-867c-f8d28a07d553
---
# Compiler Error C2872
-'*symbol*' : ambiguous symbol
+> '*symbol*' : ambiguous symbol
+
+## Remarks
The compiler cannot determine which symbol you are referring to. More than one symbol with the specified name is in scope. See the notes following the error message for the file locations and declarations the compiler found for the ambiguous symbol. To fix this issue, you can fully qualify the ambiguous symbol by using its namespace, for example, `std::byte` or `::byte`. You can also use a [namespace alias](../../cpp/namespaces-cpp.md#namespace_aliases) to give an included namespace a convenient short name for use when disambiguating symbols in your source code.
@@ -22,7 +23,7 @@ C2872 can occur in Visual Studio 2013 due to a conflict between the `Windows::Fo
## Example
-The following sample generates C2872, because an ambiguous reference is made to a variable named `i`; two variables with the same name are in scope:
+The following example generates C2872, because an ambiguous reference is made to a variable named `i`; two variables with the same name are in scope:
```cpp
// C2872.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2873.md b/docs/error-messages/compiler-errors-2/compiler-error-c2873.md
index f68141e9cb..befff3cf35 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2873.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2873.md
@@ -1,13 +1,14 @@
---
-description: "Learn more about: Compiler Error C2873"
title: "Compiler Error C2873"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2873"
+ms.date: 11/04/2016
f1_keywords: ["C2873"]
helpviewer_keywords: ["C2873"]
-ms.assetid: 7a10036b-400e-4364-bd2f-dcd7370c5e28
---
# Compiler Error C2873
-'symbol' : symbol cannot be used in a using-declaration
+> 'symbol' : symbol cannot be used in a using-declaration
+
+## Remarks
A **`using`** directive is missing a [namespace](../../cpp/namespaces-cpp.md) keyword. This causes the compiler to misinterpret the code as a [using declaration](../../cpp/using-declaration.md) rather than a [using directive](../../cpp/namespaces-cpp.md#using_directives).
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2874.md b/docs/error-messages/compiler-errors-2/compiler-error-c2874.md
index f77e52f6aa..2903d83b7e 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2874.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2874.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2874"
title: "Compiler Error C2874"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2874"
+ms.date: 11/04/2016
f1_keywords: ["C2874"]
helpviewer_keywords: ["C2874"]
-ms.assetid: b54fa9d8-8df5-40d9-9b3b-aa3e9dd6a3be
---
# Compiler Error C2874
-using-declaration causes a multiple declaration of 'symbol'
+> using-declaration causes a multiple declaration of 'symbol'
+
+## Remarks
The declaration causes the same item to be defined twice.
-The following sample generates C2874:
+## Example
+
+The following example generates C2874:
```cpp
// C2874.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2875.md b/docs/error-messages/compiler-errors-2/compiler-error-c2875.md
index ed6b53506d..2a2e0688f8 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2875.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2875.md
@@ -1,20 +1,23 @@
---
-description: "Learn more about: Compiler Error C2875"
title: "Compiler Error C2875"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2875"
+ms.date: 11/04/2016
f1_keywords: ["C2875"]
helpviewer_keywords: ["C2875"]
-ms.assetid: d589fc0c-08b2-4a79-bc0e-dca5eb80bdd5
---
# Compiler Error C2875
> using-declaration causes a multiple declaration of 'class::identifier'
+## Remarks
+
The declaration causes the same item to be defined twice.
This error is obsolete in Visual Studio 2022 and later versions.
-The following sample generates C2875:
+## Example
+
+The following example generates C2875:
```cpp
// C2875.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2876.md b/docs/error-messages/compiler-errors-2/compiler-error-c2876.md
index 4aa48c784a..d102a7f019 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2876.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2876.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2876"
title: "Compiler Error C2876"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2876"
+ms.date: 11/04/2016
f1_keywords: ["C2876"]
helpviewer_keywords: ["C2876"]
-ms.assetid: 8b674bf1-f9f4-4a8e-8127-e884c1d1708f
---
# Compiler Error C2876
-'class::symbol' : not all overloads are accessible
+> 'class::symbol' : not all overloads are accessible
+
+## Remarks
All overloaded forms of a function in a base class must be accessible to the derived class.
-The following sample generates C2876:
+## Example
+
+The following example generates C2876:
```cpp
// C2876.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2877.md b/docs/error-messages/compiler-errors-2/compiler-error-c2877.md
index dfe1367cf5..62a17b4f70 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2877.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2877.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2877"
title: "Compiler Error C2877"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2877"
+ms.date: 11/04/2016
f1_keywords: ["C2877"]
helpviewer_keywords: ["C2877"]
-ms.assetid: 0b54837e-fcae-4d90-9658-623250435e24
---
# Compiler Error C2877
-'symbol' is not accessible from 'class'
+> 'symbol' is not accessible from 'class'
+
+## Remarks
All members derived from a base class must be accessible in the derived class.
-The following sample generates C2877:
+## Example
+
+The following example generates C2877:
```cpp
// C2877.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2878.md b/docs/error-messages/compiler-errors-2/compiler-error-c2878.md
index cc6a1320da..d5c043adce 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2878.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2878.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2878"
title: "Compiler Error C2878"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2878"
+ms.date: 11/04/2016
f1_keywords: ["C2878"]
helpviewer_keywords: ["C2878"]
-ms.assetid: 83ee3de1-f554-49e8-a840-1f550cee7f69
---
# Compiler Error C2878
-'name' : a namespace or class of this name does not exist
+> 'name' : a namespace or class of this name does not exist
+
+## Remarks
You made reference to a namespace or class that is not defined.
-The following sample generates C2878:
+## Example
+
+The following example generates C2878:
```cpp
// C2878.cpp
diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2879.md b/docs/error-messages/compiler-errors-2/compiler-error-c2879.md
index 90cfabfe63..0baee26805 100644
--- a/docs/error-messages/compiler-errors-2/compiler-error-c2879.md
+++ b/docs/error-messages/compiler-errors-2/compiler-error-c2879.md
@@ -1,18 +1,21 @@
---
-description: "Learn more about: Compiler Error C2879"
title: "Compiler Error C2879"
-ms.date: "11/04/2016"
+description: "Learn more about: Compiler Error C2879"
+ms.date: 11/04/2016
f1_keywords: ["C2879"]
helpviewer_keywords: ["C2879"]
-ms.assetid: ac92b645-2394-49de-8632-43d44e0553ed
---
# Compiler Error C2879
-'symbol' : only an existing namespace can be given an alternative name by a namespace alias definition
+> 'symbol' : only an existing namespace can be given an alternative name by a namespace alias definition
+
+## Remarks
You cannot create a [namespace alias](../../cpp/namespaces-cpp.md#namespace_aliases) to a symbol other than a namespace.
-The following sample generates C2879:
+## Example
+
+The following example generates C2879:
```cpp
// C2879.cpp