
4 Nov
2009
4 Nov
'09
7:34 p.m.
AMDG Thomas Klimpel wrote:
Zachary Turner wrote:
That aside, should we consider how to deal with #pragma warning(disable) in MSVC (do other compilers have similar pragmas)? Should it be disallowed?
No, it should not be disallowed.
The "warning C4127: conditional expression is constant" for a code like "if(op_type < 2)" where "op_type" is a template parameter is just nonsense.
My personal favorite example of conditional expression is constant is while(true) In Christ, Steven Watanabe