Skip to content

Commit

Permalink
fstream-->ostream ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Nov 16, 2023
1 parent 151dedd commit 6da7fde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solver/utils/ortools_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ ProblemSimplexeNommeConverter::ProblemSimplexeNommeConverter(
auto myid = std::this_thread::get_id();
std::stringstream ss;
ss << myid;
auto log_file = log_directory / (std::string("thread_") + ss.str() + ".log");
auto log_file_per_thread = log_directory / (std::string("thread_") + ss.str() + ".log");
// TODO
log_writer_.open(log_file, std::ofstream::out | std::ofstream::app);
log_writer_.open(log_file_per_thread, std::ofstream::out | std::ofstream::app);
log_streams.push_back(&log_writer_);
}

Expand Down
1 change: 1 addition & 0 deletions src/solver/utils/ortools_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <map>
#include <string>
#include <fstream>

#include <antares/writer/i_writer.h>

Expand Down

0 comments on commit 6da7fde

Please sign in to comment.