Issue 124131

Summary: use smart pointer's bool operator instead of comparing its content against NULL
Product: General Reporter: hdu <hdu>
Component: codeAssignee: hdu <hdu>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P4 CC: issues
Version: 4.1.0-dev   
Target Milestone: 4.1.0   
Hardware: All   
OS: All   
Issue Type: TASK Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 122766, 122208    

Description hdu@apache.org 2014-01-28 09:25:26 UTC
Implicit conversions of NULL to e.g. boost::detail::sp_nullptr_t result in warnings that can and should be avoided by using the smart pointers bool operator. This boolean check has to be done explicitly because the bool operator is marked as "explicit" for compilers that support this C++11 feature.
Comment 1 SVN Robot 2014-01-28 14:44:54 UTC
"hdu" committed SVN revision 1562080 into trunk:
#i124131# use smart pointer's bool operator instead of comparing its content ...
Comment 2 hdu@apache.org 2014-01-28 14:49:32 UTC
Fixed for boost's smart pointers with the commit above.
Comment 3 hdu@apache.org 2014-04-03 14:34:34 UTC
Verified: Still fixed in the AOO410 release candidate.