I've been attempting to build the 0.4.9 RC3 with openSUSE Tumbleweed and the deprecation warnings for boost::timer are finally showing up as compile errors. I did a code search and found the locations of the usage:
Code: Select all
./python/AI/AIFramework.cpp:142: boost::timer order_timer;
./UI/TechTreeWnd.cpp:1845: boost::timer insertion_timer;
./UI/TechTreeWnd.cpp:1903: boost::timer creation_timer;
./universe/Universe.cpp:1213: boost::timer type_timer;
./universe/Universe.cpp:1214: boost::timer eval_timer;
./network/Message.cpp:824: boost::timer deserialize_timer;
./network/Message.cpp:869: boost::timer deserialize_timer;
This distro is using Boost 1.71. Additionally, there are many places that include `boost/timer.hpp` which should be `boost/timer/timer.hpp` instead. I've started a patch (attached), but I am unsure of how to actually do the timer replacement in the code.