|
From: <jal...@st...> - 2004-09-01 07:38:55
|
Hello Everyone,
I am having a lot of trouble with the exception handling with OpenC++ (version
2.5.12) because it does not correctly parse a method declaration with a throw
clause. For example, the PersonExu constructor declaration in this header
file would generate a compiler error even though this is valid c++:
class PersonExu {
public:
PersonExu(int a) throw (int);
int Age();
int BirthdayComes();
int age;
};
However, a throw expression in the body of any method would be ok. For
example, this would be ok:
PersonExu::PersonExu(int a):age(a) {
if (age == 8) throw 8;
}
So I was wondering if there is any patch for this or newer version of OpenC++
that handles this. Thanks.
John Altidor
|