Tech Off Post

Single Post Permalink

View Thread: template countof confusion-question
  • User profile image

    I made this change; I don't usually hack the CRT, but this one was trivial.  The + 0 silences a spurious "warning C6260: sizeof * sizeof is usually wrong. Did you intend to use a character count or a byte count?" from /analyze when someone writes _countof(arr) * sizeof(T).