Ambiguous class namespace

I ... feel stupid asking about this, but I'm not sure how to solve the problem.

This is a small piece of 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 get is: Use of 'Window' is ambiguous , and it states that it is declared in Xh as typedef XID Window and in window.h as class eq::Window , which is its superclass.

The class I am declaring should be in namespace eqOther yes? eqOther::Window is different from eq::Window !?

I feel so stupid, but I just don’t see what I did wrong ...

+4
source share
1 answer

Perhaps you have using namespace eq; somewhere in your headlines

+2
source

Source: https://habr.com/ru/post/1315196/


All Articles