开发者

Ambiguous Class Namespace Issue

开发者 https://www.devze.com 2023-01-06 10:00 出处:网络
I... feel really silly asking this, but I\'m not sure how to resolve the problem. This is a little snippit of my code (Objective-C++):

I... feel really silly asking this, but I'm not sure how to resolve the problem.

This is a little snippit of my code (Objective-C++):

#include "eq/eq.h"
namespace eqOther
{
    class Window : public eq::Window //<-- Error occurs here
    {
    public:
        Window( eq::Pipe* parent ) : eq::Window( parent ) {}

        void popup();

    protected:
        virtual ~Window() {}

        virtual bool processEvent( const eq::Event& event );

    private:

    };
}

And the error I'm getting is: Use of 'Window' is ambiguous and it says it's d开发者_开发问答eclared in X.h as typedef XID Window and in window.h as class eq::Window which is its superclass.

The class I'm declaring should be in namespace eqOther yea? eqOther::Window is different than eq::Window!?

I feel soooo dumb, but I just don't see what I've done wrong...


Perhaps you have some using namespace eq; somewhere in your headers

0

精彩评论

暂无评论...
验证码 换一张
取 消