[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Qt 4.6
From: Stephan Kulow <coolo () kde ! org>
Date: 2009-06-11 7:06:25
Message-ID: 200906111005.12795.coolo () kde ! org
[Download RAW message or body]
On Wednesday 10 June 2009 20:49:49 Christoph Bartoschek wrote:
> Am Mittwoch 10 Juni 2009 schrieb Christoph Feck:
> > Hi,
> >
> > a recent change in Qt 4.6 adds #include <QMetaType> to all generated .moc
> > files in order to handle different floating point datatypes.
> >
> > Many KDE files add #include "file.moc" at the end of the .cpp file. The
> > problem is with .cpp files that include X11 headers, where Bool is
> > defined as a preprocessor macro.
> >
> > Compiling KDE with current Qt 4.6 results in the error
> >
> > #error qmetatype.h must be included before any header file that defines
> > Bool
>
> Hi,
>
> is there a valid reason to define Bool in a C++ program? Normally it is a
> big WTF. This sounds like an artifact for very old compilers. Maybe it is
> possible to fix Qt to not depend on Bool?
>
Did you read the post you replied to? Not Qt depends on Bool but X11 - and X11
isn't exactly the classic C++ program.
Greetings, Stephan
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic