【发布时间】:2013-08-19 01:07:17
【问题描述】:
我已经检查了boost docs,我知道这个错误是把0 作为第二个参数传递给boost::math::cyl_bessel_k 的结果,确实如此
return (v == 0) ? policies::raise_overflow_error<T>(function, 0, pol)
: policies::raise_domain_error<T>(
function,
"Got x = %1%, but we need x > 0", x, pol);
如果它收到了。
我是 98% 的 C++ 菜鸟。如何处理此错误以防止我的程序崩溃?
【问题讨论】:
标签: c++ math boost error-handling bessel-functions