home Forums # Technical Support Error while changing the compiler in cmakelist.txt Reply To: Error while changing the compiler in cmakelist.txt

#1458

Hi,

you do not want a forward iteration there. If you are having trouble with iterators, the simplest way is to substitute the code for reverse iteration with:

for (int h = (int) proposition->hedges.size() - 1; h >= 0; --h){
    Hedge* apply = proposition->hedges.at(h);
    activationDegree = apply->hedge(activationDegree);
}

Let me know if this helps you.