[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdevelop/plugins/languages/cpp/cppduchain
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2009-01-31 22:56:47
Message-ID: 1233442607.176117.5194.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 919424 by apaku:

Forward declare the template-specialization, this should make msvc see
that it exists and use it (hence not going to the assert) and it still
compiles and links on linux.

 M  +4 -0      templatedeclaration.h  


--- trunk/KDE/kdevelop/plugins/languages/cpp/cppduchain/templatedeclaration.h \
#919423:919424 @@ -24,6 +24,7 @@
 
 #include <language/duchain/declaration.h>
 #include <language/duchain/declarationid.h>
+#include <language/duchain/forwarddeclaration.h>
 #include <language/duchain/duchainpointer.h>
 #include <language/duchain/ducontext.h>
 #include <language/duchain/topducontext.h>
@@ -350,6 +351,9 @@
    * */
   AbstractType::Ptr resolveDelayedTypes( AbstractType::Ptr type, const \
KDevelop::DUContext* context, const KDevelop::TopDUContext* source, \
KDevelop::DUContext::SearchFlags searchFlags = \
KDevelop::DUContext::NoUndefinedTemplateParams );  
+template<>
+Declaration* SpecialTemplateDeclaration<ForwardDeclaration>::resolve(const \
TopDUContext* topContext) const; +
 }
 
 #endif


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic