Merge pull request #1073 from martinfinke/hotfix/avoid-magic-constant

Avoid magic constant in F.44
This commit is contained in:
Andrew Pardoe 2017-11-27 11:16:05 -08:00 committed by GitHub
commit 0364ecace7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3565,7 +3565,7 @@ The language guarantees that a `T&` refers to an object, so that testing for `nu
array<wheel, 4> w; array<wheel, 4> w;
// ... // ...
public: 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]; }
// ... // ...
}; };