From 497ba213d0e89491a5eda44b587ec4d6f371a5a7 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Wed, 5 Nov 2025 21:13:18 +0100 Subject: [PATCH] C.45 Enforcement about _user-defined non-defaulted_ default constructors Clarified that the Enforcement of "C.45: Don't define a default constructor that only initializes data members..." is specifically about _user-defined non-defaulted_ default constructors. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 5ea72070c..cea0b5cc6 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -5799,7 +5799,7 @@ Using default member initializers lets the compiler generate the function for yo ##### Enforcement -(Simple) A default constructor should do more than just initialize data members with constants. +(Simple) A user-defined non-defaulted default constructor should do more than just initialize data members with constants. ### C.46: By default, declare single-argument constructors explicit