I have an habit to use code like this for debugging blocks that aren't very trivial to write:
if(0)
{
// debugging code
}
The problem is "warning C4127: conditional expression is constant"
.
I am keeping comments for old code that can be deleted any time in the future (but should be kept for a while to have the possibility to follow the intentions of the original writer). I could use "#if 0", but I fail to see any improvement in readability, by contrary (but this could be a matter of taste).
Which would be the friendlier, more readable, warning free solution ?
(Since this is more a question about style, maybe there is a better StackExchange place for it)
EDIT the debugging code is not equivalent to the debugging configuration (_DEBUG): generally is within _DEBUG, but I don't want to pollute it so I have to disable it with if (0)