Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make gko::dim conversion to bool explicit
Currently, gko::dim is implicitly convertible to bool. C++ allows for so-called contextual conversions to also use explicit conversion operators. <expression> is contextually converted to bool in the following cases: 1. if(<expression>), while(<expression>), for(...; <expression>; ...) 2. !<expression>, ... && <expression>, || <expression> 3. <expression> ? ... : ... 3. static_assert/noexcept(<expression>)
- Loading branch information