[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QUESTION 1



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