I'm coming up empty on finding a solution to this problem, so I'll just hang it out there... When compiling code that would otherwise compile under Windows or Linux, IRIX is giving me problems with the definition of "what." here's the code:
Code:
using namespace std;
class MyException : public exception {
public:
MyException(const string &message, bool inclSysMsg = false);
const char *what() const; // <~~line 43
private:
string userMessage; // Exception message
};
const char *MyException::what() const {
return userMessage.c_str();
}
when I compile under IRIX, I get:
Code:
"myfile.h", line 43: error(3217): exception specification for virtual
function "MyException::what" is incompatible with that of
overridden function "std::exception::what"
const char *what() const;
^
I'm a novice when it comes to exception handling, and, unfortunately, I don't have any books on the subject (though one is on order). Can someone offer a bit of advice, or point me in the direction of some source of information that might get me through this?