11-19-2012, 04:19 PM
I think I've read somewhere that the compiler can decide to have bool whatever size it wants, it's not specified in the standard. And if it indeed used ints, memset won't work.
Optimalizator should be smart enough, anyway, to transform the for loop into something more efficient - usually a memset or equivalent.
Optimalizator should be smart enough, anyway, to transform the for loop into something more efficient - usually a memset or equivalent.