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:
Mikaël Capelle
2024-05-25 13:15:10 +02:00
committed by GitHub
parent bb0a24a00d
commit a839d36235
8 changed files with 17 additions and 95 deletions
+1 -1
View File
@@ -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{};
}