struct -> class to conform to C8

This commit is contained in:
chili 2017-10-19 10:28:16 +09:00 committed by GitHub
parent e251862408
commit ace8d7b279

View File

@ -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; }