diff --git a/gempyrelib/src/common/utils/logging.cpp b/gempyrelib/src/common/utils/logging.cpp index 5552a6e..5b2a6ca 100644 --- a/gempyrelib/src/common/utils/logging.cpp +++ b/gempyrelib/src/common/utils/logging.cpp @@ -187,7 +187,7 @@ class DevNull : public LogWriter { }; -FileLogWriter::FileLogWriter(std::string_view path) : m_file(path, std::ios::out | std::ios::app ) {} +FileLogWriter::FileLogWriter(std::string_view path) : m_file(std::string{path}, std::ios::out | std::ios::app ) {} bool FileLogWriter::do_write(const char* bytes, size_t count) { (void) count; if(!m_file.is_open())