C
Carlos Martinez Garcia
Hi all:
I have a class with a method that throws an exception.
class A {
public:
void myMethod() throw(MyException);
};
My question is if MyExcepcion must be defined at that point or not.
I think it must because if I use a forward declaration of MyExcepcion,
compiler gives me an error.
Is there any valid way without include the definition of MyException
before A?
Thanks in advance
I have a class with a method that throws an exception.
class A {
public:
void myMethod() throw(MyException);
};
My question is if MyExcepcion must be defined at that point or not.
I think it must because if I use a forward declaration of MyExcepcion,
compiler gives me an error.
Is there any valid way without include the definition of MyException
before A?
Thanks in advance