update boost on linux
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <boost/numeric/odeint/stepper/stepper_categories.hpp>
|
||||
#include <boost/numeric/odeint/integrate/null_observer.hpp>
|
||||
#include <boost/numeric/odeint/integrate/detail/integrate_n_steps.hpp>
|
||||
#include <boost/numeric/odeint/integrate/check_adapter.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace numeric {
|
||||
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
if( m_steps++ >= m_max_steps )
|
||||
{
|
||||
char error_msg[200];
|
||||
sprintf(error_msg, "Max number of iterations exceeded (%d).", m_max_steps);
|
||||
std::sprintf(error_msg, "Max number of iterations exceeded (%d).", m_max_steps);
|
||||
BOOST_THROW_EXCEPTION( no_progress_error(error_msg) );
|
||||
}
|
||||
}
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
if( m_steps++ >= m_max_steps )
|
||||
{
|
||||
char error_msg[200];
|
||||
sprintf(error_msg, "Max number of iterations exceeded (%d). A new step size was not found.", m_max_steps);
|
||||
std::sprintf(error_msg, "Max number of iterations exceeded (%d). A new step size was not found.", m_max_steps);
|
||||
BOOST_THROW_EXCEPTION( step_adjustment_error(error_msg) );
|
||||
}
|
||||
}
|
||||
@@ -111,4 +111,4 @@ public:
|
||||
} // namespace numeric
|
||||
} // namespace boost
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user