[iter] Make operator bool explicit
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 6 Aug 2018 22:32:13 +0000 (15:32 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 6 Aug 2018 22:32:13 +0000 (15:32 -0700)
commit66920a6bace7c54c8166c4ed938b6ffc5fabcf2b
tree494387ff73417248d7ac3dd30dc92b8d013fe1eb
parent79e21984b13bdb879f3007ba9a97fde47df340d3
[iter] Make operator bool explicit

We would need to write:

  for (Iter<T> it (...); bool (t); t++)

instead of:

  for (Iter<T> it (...); t; t++)

But I think it's an improvement in code readability in the long term.

Fixes https://github.com/harfbuzz/harfbuzz/issues/1127
src/hb-iter-private.hh