|
-
April 11th, 1999, 07:24 AM
#1
m_bChech == true results in warning!
I am using the if expression with boolean data types. The strang thing is that comparison with false does not give error but the same with true gives error.
if (m_bCheck == false); // ok
if (m_bCheck !=true); // ok
if (m_bCheck == true); // Here it gives warning message related to == operator.
// says one side is const bool and other is somthing else...
Please help with this!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|