KDE/kdelibs/kjs

Dirk Mueller mueller at kde.org
Mon Feb 20 14:18:44 CET 2006


On Saturday, 18. February 2006 13:01, Peter Kümmel wrote:

> Here is a test case:

Ah thanks. Thats subject of a C++ defect report regarding namespace injection 
of friend declarations, but actually the testcase is invalid. 

does it work with MSVC++ if you apply this patch?

--- kjstest-orig.cc     2006-02-20 14:12:54.537300751 +0100
+++ kjstest.cc  2006-02-20 14:14:33.130072685 +0100
@@ -11,13 +11,14 @@

 namespace KJS
 {
-    struct C : A
+
+   struct C : :: A
     {
-        friend A* PP creator<C>();
+        friend A* creator<C>();

         A* getAPtr()
         {
-            return PP creator<C>();
+            return creator<C>();
         }

     private:


-- 
Dirk//\


More information about the Khtml-devel mailing list