MSVC error driving me nuts
Ralf Habacker
ralf.habacker at freenet.de
Sun Sep 21 17:55:36 CEST 2008
Andreas Pakulat schrieb:
> Hi,
>
> even though I've recently read the templates chapter in my stroustrup,
> it seems I'm still missing something.
>
> Suppose I have the following two class definitions:
>
> template <typename T> class AbstractBuilder
> {
>
> protected:
> virtual void setContextOnNode( T * node, Context* ) = 0;
> public:
> void deleteContextOnNode( T* node )
> {
> delete contextFromNode( node );
> setContextOnNode( node, 0 );
> }
> };
>
> class MyBuilder : public AbstractBuilder<AST>
> {
> protected:
> virtual void setContextOnNode( AST*, Context* ) {}
> };
>
> MSVC barfs on the setContextOnNode line in AbstractBuilder, telling me
> that "setContextOnNode" is an unknown identifier, or rather that the
> identifier cannot be found.
>
> Now I don't really understand why it thinks so or how to fix this. Of
> course this compiles just fine with gcc/linux.
>
> The actual code is
> trunk/KDE/kdevplatform/language/duchain/builders/abstractcontextbuilder.h
> trunk/KDE/kdevelop/languages/cpp/cppduchain/contextbuilder.h
>
> Can somebody please let me know where I'm misunderstanding something?
>
I tried to compile kdevelop - it depends on a precompiled kdevplatform,
which isn't buildable yet - there is a problem with anonsvn.kde.org
Hole externen Verweis nach »kdevplatform\plugins\quickopen\expandingtree«
svn: Kann nicht mit Host »anonsvn.kde.org« verbinden: Es konnte keine
Verbindung hergestellt werden, da der Zielcomputer die Verbindung verw
eigerte.
Ralf
More information about the Kde-windows
mailing list