Skip to content

Commit 47fc2bb

Browse files
authored
Merge pull request #4250 from MicrosoftDocs/main638025751120497754sync_temp
Repo sync for protected CLA branch
2 parents 97aea91 + 7292794 commit 47fc2bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4623.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
description: "Learn more about: Compiler Warning (level 4) C4623"
33
title: "Compiler Warning (level 4) C4623"
4-
ms.date: "11/04/2016"
4+
ms.date: 10/27/2022
55
f1_keywords: ["C4623"]
66
helpviewer_keywords: ["C4623"]
77
ms.assetid: e630d8d0-f6ea-469c-a74f-07b027587225
88
---
99
# Compiler Warning (level 4) C4623
1010

11-
'`derived class`' : default constructor was implicitly defined as deleted because a base class default constructor is inaccessible or deleted
11+
> '`derived class`' : default constructor was implicitly defined as deleted
1212
13-
A constructor was not accessible in a base class and was not generated for the derived class. Any attempt to create an object of this type on the stack will cause a compiler error.
13+
Because the default constructor is deleted or inaccessible in a base class, the compiler can't generate a default constructor for the derived class. Attempts to create an object of this type by using the default constructor (for example, in an array) cause a compiler error.
1414

15-
This warning is off by default. See [Compiler Warnings That Are Off by Default](../../preprocessor/compiler-warnings-that-are-off-by-default.md) for more information.
15+
This warning is off by default. For more information, see [Compiler warnings that are off by default](../../preprocessor/compiler-warnings-that-are-off-by-default.md).
1616

1717
## Example
1818

@@ -35,6 +35,6 @@ class D : public B {}; // C4623 - to fix, make B's constructor public
3535
class E : public C {}; // OK - class C constructor is public
3636

3737
int main() {
38-
// D d; will cause an error
38+
// D d; // Error C2280
3939
}
4040
```

0 commit comments

Comments
 (0)