Fix ambiguous call to overloaded function

(`std::exception` has a `char*` constructor?)
This commit is contained in:
Thomas Krijnen
2018-01-08 12:33:27 +01:00
committed by GitHub
parent 6240191980
commit 7b728b9e6d
+1 -1
View File
@@ -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) { 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) { void Logger::Status(const std::string& message, bool new_line) {