coin-or / SHOT

A solver for mixed-integer nonlinear optimization problems
https://shotsolver.dev
Eclipse Public License 2.0
117 stars 25 forks source link

adjust to changes in boost 1.77.0 #149

Closed svigerske closed 2 years ago

svigerske commented 2 years ago

There was a change in boost (boostorg/math@fc9891cccd7ff595bf67bf88ca6a8ac38ae7a9c8) that broke compilation of NLPSolverCuttingPlaneMinimax because the signature of boost::math::tools::brent_find_minima() changed (now expecting std::uintmax_t instead of boost::uintmax_t). This PR adapts to this change.

An alternative may have been to include boost/cstdint.hpp to get boost::uintmax_t back. I haven't tried that.

svigerske commented 2 years ago

There was a similar problem in RootsearchMethodBoost.cpp. Including boost/cstdint.h also works and is a smaller change, so I changed to that.