brkga_mp_ipr_cpp icon indicating copy to clipboard operation
brkga_mp_ipr_cpp copied to clipboard

Compile errors with gcc 11.4.0 and proposed solution

Open marcosrobertosilva opened this issue 1 year ago • 3 comments

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.

marcosrobertosilva avatar Sep 22 '24 15:09 marcosrobertosilva