[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
QUESTION 1
- To: XTL list <xtl@lsd.di.uminho.pt>
- Subject: QUESTION 1
- From: Angus Leeming <a.leeming@ic.ac.uk>
- Date: Wed, 26 Apr 2000 11:29:14 +0100
- Delivered-To: mailing list xtl@lsd.di.uminho.pt
- Mailing-List: contact xtl-help@lsd.di.uminho.pt; run by ezmlm
When compiling the test programs with DEC cxx I get the following warning
cxx: Warning: alltests.h, line 421: statement is unreachable
try {
Investigating, I find that the relevant code is:
bool operator==(const objects& other) const {
return true;
derived* oder;
try {
oder=dynamic_cast<derived*>(other.bptr2);
} catch(...) {
return false;
}
return *bptr1==*other.bptr1 && *bptr2==*oder;
}
Is there any reason why this code has been discarded?
Angus