Avoid magic constant

pull/1073/head
Martin Finke 8 years ago
parent 8a408d8500
commit d13ac81e27

@ -3565,7 +3565,7 @@ The language guarantees that a `T&` refers to an object, so that testing for `nu
array<wheel, 4> w;
// ...
public:
wheel& get_wheel(size_t i) { Expects(i < 4); return w[i]; }
wheel& get_wheel(size_t i) { Expects(i < w.size()); return w[i]; }
// ...
};

Loading…
Cancel
Save