ceandrade / brkga_mp_ipr_cpp

The Multi-Parent Biased Random-Key Genetic Algorithm with Implict Path Relink - C++ version
Other
16 stars 6 forks source link

Compile errors with gcc 11.4.0 and proposed solution #9

Open marcosrobertosilva opened 2 weeks ago

marcosrobertosilva commented 2 weeks ago

Hi, I got some compile errors when trying to compile the test program, and my solution was to cast as below:

std::chrono::duration_cast<std::chrono::seconds>(status.current_time).count()

all calls in logger of file brkga_mp_ipr.hpp. The same for files main_minimal.cpp and main_complete.cpp from TSP example, path brkga_mp_ipr_cpp/examples/tsp/src/single_obj.

Could you please check this proposed change and see if it makes sense? Thank you.