0 or 0L for empty pointers?

Allan Sandfeld Jensen kde at carewolf.com
Fri Jun 23 12:55:39 BST 2006


On Friday 23 June 2006 13:42, Frans Englich wrote:
> On Friday 23 June 2006 10:33, Thiago Macieira wrote:
> > Allan Sandfeld Jensen wrote:
> > >> But Windows 64-bit isn't. It's P64: longs are still 32-bit. Worst of
> > >> all: Microsoft brags about it :-)
> > >
> > >Yes. But this is compiler dependent. All sensible compilers on Windows
> > > still treat long as sizeof(void*) or can be configured to do it.
> >
> > Yes, we all know that Microsoft compilers aren't sensible :-)
> >
> > >I doubt KDE could be compiled by MSVC anyway.
> >
> > In fact, until I broke with the D-BUS merge, it was being compiled with
> > MSVC. Just not the pre-historic versions like MSVC 6.0, that don't
> > support templates properly.
>
> And I appreciate that, because now it won't be me breaking it ;-)
>
> Is there any C++ features one can't use in KDE in order to continue support
> the platforms KDE do? Yes, some features should be avoided in any case like
> dynamic_cast, but perhaps there's some template features or the like that
> should be avoided.
>
You should avoid templates outside headers. The broken g++ compiler common on 
Linux can't handle it.

;)

`Allan




More information about the kde-core-devel mailing list