diff --git a/Mesh_3/include/CGAL/Mesh_3/polylines_to_protect.h b/Mesh_3/include/CGAL/Mesh_3/polylines_to_protect.h index a66779a816b..e817165a89b 100644 --- a/Mesh_3/include/CGAL/Mesh_3/polylines_to_protect.h +++ b/Mesh_3/include/CGAL/Mesh_3/polylines_to_protect.h @@ -208,43 +208,50 @@ private: scale(vy, y)); v_int = g_manip.get_vertex(inter_p, false); g_manip.try_add_edge(old, v_int); + +#ifndef CGAL_CFG_NO_CPP0X_LAMBDAS CGAL_assertion_msg(max_squared_distance == 0 || CGAL::squared_distance(g_manip.g[old].point, g_manip.g[v_int].point) < max_squared_distance, -#ifndef CGAL_CFG_NO_CPP0X_LAMBDAS ([this, old, v_int] { std::stringstream s; s << "Problem at segment (" << this->g_manip.g[old].point << ", " << this->g_manip.g[v_int].point << ")"; return s.str(); - }().c_str()) + }().c_str())); #else // no C++ lamdbas - "" + CGAL_assertion(max_squared_distance == 0 || + CGAL::squared_distance(g_manip.g[old].point, + g_manip.g[v_int].point) < + max_squared_distance); #endif // no C++ lamdbas - ); + old = v_int; } if(null_vertex != v_int) { // v_int can be null if the curve is degenerated into one point. g_manip.try_add_edge(v_int, end_v); +#ifndef CGAL_CFG_NO_CPP0X_LAMBDAS CGAL_assertion_msg(max_squared_distance == 0 || CGAL::squared_distance(g_manip.g[end_v].point, g_manip.g[v_int].point) < max_squared_distance, -#ifndef CGAL_CFG_NO_CPP0X_LAMBDAS ([this, end_v, v_int] { std::stringstream s; s << "Problem at segment (" << this->g_manip.g[end_v].point << ", " << this->g_manip.g[v_int].point << ")"; return s.str(); - }().c_str()) + }().c_str())); #else // no C++ lamdbas - "" + CGAL_assertion(max_squared_distance == 0 || + CGAL::squared_distance(g_manip.g[end_v].point, + g_manip.g[v_int].point) < + max_squared_distance); #endif // no C++ lamdbas - ); + } } }; diff --git a/Solver_interface/include/CGAL/Eigen_diagonalize_traits.h b/Solver_interface/include/CGAL/Eigen_diagonalize_traits.h index 165a6ed56c0..bcc923e725d 100644 --- a/Solver_interface/include/CGAL/Eigen_diagonalize_traits.h +++ b/Solver_interface/include/CGAL/Eigen_diagonalize_traits.h @@ -70,9 +70,9 @@ private: { EigenMatrix m; - for(std::size_t i=0; i(cov[(dim * i) + j - ((i * (i+1)) / 2)]); @@ -150,11 +150,11 @@ public: if(res) { - for(std::size_t i=0; i(eigenvalues_[i]); - for(std::size_t j=0; j(eigenvectors_(j,i)); } }