Can I detect tautologies at compile time?

Posted by Tim Gradwell on Stack Overflow See other posts from Stack Overflow or by Tim Gradwell
Published on 2010-05-18T14:25:34Z Indexed on 2010/05/18 14:30 UTC
Read the original article Hit count: 233

Filed under:

Is there any way I can catch tautologies at compile time?

Such as

if (abc && abc)

or

if (def || def)

© Stack Overflow or respective owner

Related posts about c++