Skip to content

Commit ace8d7b

Browse files
authored
struct -> class to conform to C8
1 parent e251862 commit ace8d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4198,7 +4198,7 @@ This may be exactly what we want, but if we want to enforce a relation among mem
41984198
and enforce that relation (invariant) through constructors and member functions.
41994199
For example:
42004200

4201-
struct Distance {
4201+
class Distance {
42024202
public:
42034203
// ...
42044204
double meters() const { return magnitude*unit; }

0 commit comments

Comments
 (0)