From 0dc22f5cc5aa56e4044bd573cd912edee7089668 Mon Sep 17 00:00:00 2001 From: cyy Date: Sat, 26 Sep 2020 18:05:53 +0800 Subject: [PATCH] add throw --- modules/intensity_transform/src/bimef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/intensity_transform/src/bimef.cpp b/modules/intensity_transform/src/bimef.cpp index 64a5f55ae..58eac6002 100644 --- a/modules/intensity_transform/src/bimef.cpp +++ b/modules/intensity_transform/src/bimef.cpp @@ -334,7 +334,7 @@ static double minimize_scalar_bounded(const Mat_& I, double begin, double double x1 = begin, x2 = end; if (x1 > x2) { - std::runtime_error("The lower bound exceeds the upper bound."); + throw std::runtime_error("The lower bound exceeds the upper bound."); } double sqrt_eps = std::sqrt(2.2e-16);