[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: QwSpriteField
From: Waldo Bastian <bastian () ens ! ascom ! ch>
Date: 1999-07-14 11:50:11
[Download RAW message or body]
Function pointers suck major. They are sooooo incompatible.
Does it compile if you cast the second argument in line 156
to either int (*)(void *, void *) or
to int (*)(const void *, const void*) ?
Why is does it have an unknown type in the first place?
Cheers,
Waldo
John Corey wrote:
>
> A couple days ago someone added a couple const's to void*
> arguments in kdesupport/QwSpriteField/QwSpriteField.cpp. For
> some reason, they don't compile on my system, egcs 1.1.1.
> Removing the "const" and all is ok again. Any ideas?
>
> QwSpriteField.cpp:156: call of overloaded `sort
> (QwPublicList<QwSpriteFieldGraphic *> *&, {unknown type}, const bool &)'
> is ambiguous
> QwPublicList.h:38: candidates are: sort<QwSpriteFieldGraphic
> *>(QwPublicList<QwSpriteFieldGraphic *> *&, int (*)(void *, void *),
> bool)
> QwPublicList.cpp:103: sort<QwSpriteFieldGraphic
> *>(QwPublicList<QwSpriteFieldGraphic *> *&, int (*)(const void *, const
> void *), bool)
--
The "gui" in "Penguin" is pronounced "K-D-E"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic