diff --git a/ch07/ex7_53.h b/ch07/ex7_53.h index 313033dc..1f0d6367 100644 --- a/ch07/ex7_53.h +++ b/ch07/ex7_53.h @@ -13,7 +13,7 @@ class Debug { public: constexpr Debug(bool b = true) : rt(b), io(b), other(b) {} constexpr Debug(bool r, bool i, bool o) : rt(r), io(i), other(0) {} - constexpr bool any() { return rt || io || other; } + constexpr bool any() const { return rt || io || other; } void set_rt(bool b) { rt = b; } void set_io(bool b) { io = b; }