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
+2 -2
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) {
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<IfcUtil::IfcBaseClass*> Logger::current_product;
boost::optional<IfcUtil::IfcBaseClass*> Logger::current_product;