Make IfcException's dtor and what() virtual

This commit is contained in:
Stinkfist0
2016-05-31 17:08:39 +03:00
parent 77b72a9dde
commit 74a3f131be
+2 -2
View File
@@ -39,8 +39,8 @@ namespace IfcParse {
public:
IfcException(const std::string& m)
: message(m) {}
~IfcException () throw () {}
const char* what() const throw() {
virtual ~IfcException () throw () {}
virtual const char* what() const throw() {
return message.c_str();
}
};