From 74a3f131be72f404643bfc52dacce5d386a10cd8 Mon Sep 17 00:00:00 2001 From: Stinkfist0 Date: Tue, 31 May 2016 17:08:39 +0300 Subject: [PATCH] Make IfcException's dtor and what() virtual --- src/ifcparse/IfcException.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } };