diff --git a/src/ifcparse/IfcLogger.cpp b/src/ifcparse/IfcLogger.cpp index fd7276e89e..6a7a9044ef 100644 --- a/src/ifcparse/IfcLogger.cpp +++ b/src/ifcparse/IfcLogger.cpp @@ -51,7 +51,7 @@ void Logger::Message(Logger::Severity type, const std::string& message, const If } void Logger::Message(Logger::Severity type, const std::exception& exception, const IfcUtil::IfcBaseClass* instance) { - Message(type, exception.what(), instance); + Message(type, std::string(exception.what()), instance); } void Logger::Status(const std::string& message, bool new_line) { @@ -77,4 +77,4 @@ std::ostream* Logger::log2 = 0; std::stringstream Logger::log_stream; Logger::Severity Logger::verbosity = Logger::LOG_NOTICE; const char* Logger::severity_strings[] = { "Notice","Warning","Error" }; -boost::optional Logger::current_product; \ No newline at end of file +boost::optional Logger::current_product;