KDE/kdelibs/kjs
Peter Kümmel
syntheticpp at gmx.net
Mon Feb 20 16:14:39 CET 2006
Dirk Mueller wrote:
> On Monday, 20. February 2006 15:51, Dirk Mueller wrote:
>
>> testcase properly, without those broken safari hacks.
>
> even compiles with 2.95, gcc 3.1.3 and gcc 3.2.2.
>
>
Do you really use this code?
struct A {};
struct B : A {};
template<class T>
A* creator()
{
return new T;
}
namespace KJS
{
struct C : ::A
{
friend A* ::creator<C>();
A* getAPtr()
{
return ::creator<C>();
}
private:
C(){}
};
}
int main()
{
return 0;
}
More information about the Khtml-devel
mailing list