What's going on here? I donโt even understand why the warning is triggered in the first place. I thought the first bit of code already returned bool.
, void*. ( bool. , , void* , bool, , .) [1]
operator>>() - . , : strm >> value1 >> value2 ((strm >> value1) >> value2).
, if( strm >> value ), strm >> value . if, void*, NULL .
if(ptr), if bool, , , bool, .
return . , , , . VC , 99 100 . 1% ( , BTW, , ) .
-
return 0 != <expression>
<expression> - , , .
[1] ISTR Stroustrup -, operator bool() , : ostrm >> 5; ( , >> <<) , , ( , 5 , .)