const CorBool corFALSE

$Id: CorBool

Documentation

$Id: CorBool.h,v 1.4 1997/04/11 13:31:56 mwiedmer Exp $

SYNOPSIS

    #include <CorBool.h>
    
    CorBool boolean = corTRUE;
    boolean = corFALSE;
  

DESCRIPTION
This class has the following restriction: a non-zero integer is not the same as corTRUE. This semantic restriction could be removed by making CorBool a class. This, however, was found to be inefficient.
CorBool is not an enumerated type, otherwise all conditional expressions must be cast to CorBool, which is tedious and looks horrible.
The alternatives are to use a DEFINE or a typedef, the latter of which is better.

CAUTIONS

  CorBool boolean = -14; // this does not generate a compiler error
  void foo(CorBool);
  void foo(int);

  foo(-14); // might call foo(CorBool);
  
  

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de