mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Switch from fmtlib to std::format. (#124)
* Fix issue with latest pybind11. * Switch from fmtlib to std::format. * Set CMake policy CMP0144.
This commit is contained in:
@@ -25,7 +25,7 @@ namespace mo2::python {
|
||||
buffer_ << message;
|
||||
if (buffer_.tellp() != 0 && buffer_.str().back() == '\n') {
|
||||
const auto full_message = buffer_.str();
|
||||
MOBase::log::log(level_,
|
||||
MOBase::log::log(level_, "{}",
|
||||
full_message.substr(0, full_message.length() - 1));
|
||||
buffer_ = std::stringstream{};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user