home › Forums › # Technical Support › Error while changing the compiler in cmakelist.txt › Reply To: Error while changing the compiler in cmakelist.txt
Hey,
please see the following error. Is this error about reverse iteration ? If yes then can you tell me how can i change reverse iteration with forward as i am unable to understand the code.
Can you help please.
I have seen a forum that says its possible to change the reverse iteration with forward. please see following link.
http://stackoverflow.com/questions/2037867/can-i-convert-a-reverse-iterator-to-a-forward-iterator
Error:
error: could not convert ((*&rit) <unknown operator> ((const std::reverse_iterator<__gnu_cxx::__normal_iterator<fl::Hedge* const*, std::vector<fl::Hedge*, std::allocator<fl::Hedge*> > > >&)(&reverse_iterator<__gnu_cxx::__normal_iterator<fl::Hedge* const*, std::vector<fl::Hedge*, std::allocator<fl::Hedge*> > > >(((const std::reverse_iterator<__gnu_cxx::__normal_iterator<fl::Hedge**, std::vector<fl::Hedge*, std::allocator<fl::Hedge*> > > >&)((const std::reverse_iterator<__gnu_cxx::__normal_iterator<fl::Hedge**, std::vector<fl::Hedge*, std::allocator<fl::Hedge*> > > >*)(&std::vector<_Tp, _Alloc>::rend() [with _Tp = fl::Hedge*, _Alloc = std::allocator<fl::Hedge*>]())))))))' to
bool’
make[2]: *** [CMakeFiles/fl-static.dir/src/rule/Consequent.cpp.o] Error 1
make[1]: *** [CMakeFiles/fl-static.dir/all] Error 2
make: *** [all] Error 2