diff options
Diffstat (limited to '021arithmetic.cc')
-rw-r--r-- | 021arithmetic.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/021arithmetic.cc b/021arithmetic.cc index 7d68f266..01202f33 100644 --- a/021arithmetic.cc +++ b/021arithmetic.cc @@ -187,9 +187,9 @@ recipe main [ +mem: storing 2.5 in location 1 :(code) -inline bool scalar(vector<long long int>& x) { +inline bool scalar(const vector<long long int>& x) { return SIZE(x) == 1; } -inline bool scalar(vector<double>& x) { +inline bool scalar(const vector<double>& x) { return SIZE(x) == 1; } |