At 12:55 PM 5/3/2006, William A. Rowe, Jr. wrote:
>Greg Marr wrote:
>>I mostly work on Windows, and VC++ only recently added a warning
>>for that. I've been using this style for so long that it doesn't
>>sacrifice readability, and in fact, the var == const form looks
>>wrong now.
>>However, this is entirely a personal preference.
>
>Really? It's screamed at me for 15 years. Perhaps I was running at
>a different warning level, though.
It could be, though we've been running at -W4 -Wx for many years, and
it wasn't until we upgraded from VC6 to VS2003 that we started
getting these warnings. Maybe something else (MFC) was blocking the
error.
|