The Next Great Migration: From C++ to Standard C++

By Al Stevens

Dr. Dobb's Journal September 1998

(a)
#include <windef.h>
BOOL B = TRUE;
bool b = B;     // warning
(b) 
#include <windef.h>
void foo(BOOL b) { }
void foo(bool b) { }
void bar()
{
    foo(TRUE);
    foo(true);
}

Example 1: (a) Assigning BOOL to bool; (b) BOOL versus bool.

Back to Article


Copyright © 1998, Dr. Dobb's Journal