diff --git a/src/ifcparse/IfcException.h b/src/ifcparse/IfcException.h index 0eaaecf1f0..1f466a8d9e 100644 --- a/src/ifcparse/IfcException.h +++ b/src/ifcparse/IfcException.h @@ -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(); } };