besides I always check this forum about my doutbs this is my first post here. In fact, this problem is boring me for a day and could not find an answer yet :-(
The scenario is illustrated bellow with code snipets:
Expand|Select|Wrap|Line Numbers
- //MStreamError.h
- class MStreamError {
- private:
- char* mesg;
- public:
- explicit MStreamError( const char* msg ) {
- //impl...
- }
- ~MStreamError() {
- //impl...
- }
- void report() const {
- //impl...
- }
- const char* get_message() {
- //impl...
- }
- };
- //ServerRuntimeErrors.h
- class ServerRuntimeErrors : public virtual MStreamError {
- public:
- ServerRuntimeErrors( const char* errorMessage ) : MStreamError( errorMessage ) {}
- };
- //ClientRuntimeErrors.h
- class ClientRuntimeErrors : public virtual MStreamError {
- public:
- ClientRuntimeErrors( const char* errorMessage ) : MStreamError( errorMessage ) {}
- };
- //InterfaceInicializationError.h
- class InterfaceInitializationError : public ServerRuntimeErrors, public ClientRuntimeErrors {
- public:
- InterfaceInitializationError( const char* msg ) {};
- };
I will be thankfull is someone could give me some hint about that or point me out some reference where I could understand this situation...
Regards!!