summaryrefslogtreecommitdiff
path: root/boost/numeric/odeint/integrate/max_step_checker.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/numeric/odeint/integrate/max_step_checker.hpp')
-rw-r--r--boost/numeric/odeint/integrate/max_step_checker.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/numeric/odeint/integrate/max_step_checker.hpp b/boost/numeric/odeint/integrate/max_step_checker.hpp
index 6808a57bdb..654c95bc7d 100644
--- a/boost/numeric/odeint/integrate/max_step_checker.hpp
+++ b/boost/numeric/odeint/integrate/max_step_checker.hpp
@@ -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 \ No newline at end of file
+#endif