Merge pull request #1061 from planetchili/master

struct -> class to conform to C8
pull/1069/head
Andrew Pardoe 8 years ago committed by GitHub
commit 3d282d21ed

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

Loading…
Cancel
Save