Skip to content

Commit

Permalink
Merge pull request #467 from ow97/patch-1
Browse files Browse the repository at this point in the history
throw -> std::terminate in problem.hpp
  • Loading branch information
bluescarni authored Feb 28, 2021
2 parents 7cabc77 + f6b6f2b commit 5b6e9c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pagmo/problem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ struct PAGMO_DLL_PUBLIC_INLINE_CLASS prob_inner final : prob_inner_base {
// in the problem is set to true, and m_has_gradient_sparsity is unconditionally false if the UDP
// does not implement gradient_sparsity() (see implementation of the three overloads below).
assert(false); // LCOV_EXCL_LINE
throw;
std::terminate();
}
template <typename U, enable_if_t<detail::conjunction<pagmo::has_gradient_sparsity<U>,
pagmo::override_has_gradient_sparsity<U>>::value,
Expand Down Expand Up @@ -733,7 +733,7 @@ struct PAGMO_DLL_PUBLIC_INLINE_CLASS prob_inner final : prob_inner_base {
// in the problem is set to true, and m_has_hessians_sparsity is unconditionally false if the UDP
// does not implement hessians_sparsity() (see implementation of the three overloads below).
assert(false); // LCOV_EXCL_LINE
throw;
std::terminate();
}
template <typename U, enable_if_t<detail::conjunction<pagmo::has_hessians_sparsity<U>,
pagmo::override_has_hessians_sparsity<U>>::value,
Expand Down

0 comments on commit 5b6e9c1

Please sign in to comment.