From cae07e49a1700613bf709f7d0bbf3d1c640d4a2c Mon Sep 17 00:00:00 2001 From: glisse Date: Tue, 2 Oct 2018 11:09:47 +0000 Subject: Catch exception by const& git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@3922 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 1b0cea99516d6b42e5ab3b0fdb21468b321e6d6c --- src/cython/include/Alpha_complex_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cython/include/Alpha_complex_interface.h b/src/cython/include/Alpha_complex_interface.h index 8cf527fc..faa059d1 100644 --- a/src/cython/include/Alpha_complex_interface.h +++ b/src/cython/include/Alpha_complex_interface.h @@ -60,7 +60,7 @@ class Alpha_complex_interface { Point_d ph = alpha_complex_->get_point(vh); for (auto coord = ph.cartesian_begin(); coord < ph.cartesian_end(); coord++) vd.push_back(*coord); - } catch (std::out_of_range outofrange) { + } catch (std::out_of_range const&) { // std::out_of_range is thrown in case not found. Other exceptions must be re-thrown } return vd; -- cgit v1.2.3