Skip to content
Snippets Groups Projects
Commit 8bf7b143 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

fixed isssue with const_reverse_iterator on older g++ compilers

avoids local_dist_test.cc:110: error: no match for ‘operator!=’ in
‘tol_list_it != std::vector<_Tp, _Alloc>::rend() [with _Tp = Real,
_Alloc = std::allocator<Real>]()’ on g++ 4.0.1
parent 91f2c7ee
Branches
Tags
No related merge requests found
......@@ -107,7 +107,8 @@ std::pair<Real, Real> calc_overlap1(const ResidueRDMap& res_distance_list, const
continue;
}
Real mdl_dist=geom::Length(av1.GetPos()-av2.GetPos());
for (std::vector<Real>::const_reverse_iterator tol_list_it=tol_list.rbegin();tol_list_it!=tol_list.rend();++tol_list_it) {
std::vector<Real>::const_reverse_iterator rend_it=tol_list.rend();
for (std::vector<Real>::const_reverse_iterator tol_list_it=tol_list.rbegin();tol_list_it!=rend_it;++tol_list_it) {
Real tol = * tol_list_it;
if (within_tolerance(mdl_dist,values,tol).first) {
if (log) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment