List of all members | Public Member Functions
MyFakeFalse Class Reference

Fake false, it is actually True. More...

Inheritance diagram for MyFakeFalse:
Inheritance graph
[legend]

Public Member Functions

bool BoolCast () const
 

Detailed Description

Fake false, it is actually True.

This class does not behave as naively expected. The static type resolution makes it use the base-class' BoolCast.

You cannot derive additionally from SafeBoolCast<myFakeFalse>, as demonstrated in the testBoolCastNonVirtualDerived.cc test.

You have to use the virtual SaveBoolCast, see the classes myTrueBase and myFalseDerived.

Definition at line 45 of file testBoolCast.cc.

Member Function Documentation

bool MyFakeFalse::BoolCast ( ) const
inline

Definition at line 47 of file testBoolCast.cc.


The documentation for this class was generated from the following file:

, generated on Tue Sep 26 2023.