From ace8d7b279080f4786dc29fe53217623ed8a934b Mon Sep 17 00:00:00 2001 From: chili Date: Thu, 19 Oct 2017 10:28:16 +0900 Subject: [PATCH] struct -> class to conform to C8 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 5ef36ae..5e26d9b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4198,7 +4198,7 @@ This may be exactly what we want, but if we want to enforce a relation among mem and enforce that relation (invariant) through constructors and member functions. For example: - struct Distance { + class Distance { public: // ... double meters() const { return magnitude*unit; }