CppUnit: Implementation of CPPUNIT_ASSERT: bug or feature?

Michael Stahl mstahl at redhat.com
Thu Apr 27 10:15:04 UTC 2017


On 27.04.2017 09:42, Stephan Bergmann wrote:
>> CPPUNIT_ASSERT( aBitmapEx.GetAlpha() );
> 
> and the condition is of type AlphaMask that has an overloaded operator ! 
> -- but no conversion to bool, which is probably a design bug of its own.)

well it's a design bug of C++, allowing and encouraging undisciplined
and inconsistent overloading due to lack of type classes.



More information about the LibreOffice mailing list