13117Fermer13119
ZerosquareLe 22/03/2017 à 16:44
Il semblerait que oui :
The exact wording from the C++ standard is (§4.7/4): "If the source type is bool, the value false is converted to zero and the value true is converted to one." (source)

J'ai pas de spéc C++ sous la main pour vérifier.

Si tu es parano ou que tu veux un truc qui marche aussi en C, il y a toujours count = (!!booleen1) + (!!booleen2) + ....