Compilation problem with STLPort.

Added by: ~Sebo, 2015 V 07

Seems that including STLPort headers breaks ttmath compilation.

Just do:

g++ -ISTLport-5.2.1/stlport main.cpp

gcc:

ttmath/ttmathparser.h:1979:29: error: lvalue required as decrement operand
oper.erase( --oper.end() ); // we've got mininum one element

clang:
In file included from ./ttmath/ttmath.h:2837:
./ttmath/ttmathparser.h:1979:16: error: expression is not assignable
oper.erase( --oper.end() ); // we've got mininum one element

I'm not quite sure that this is stl or ttmath problem.

Added by: ~Sebo, 2015 V 07

Maybe just pop_back() is sufficient? Both gcc&clang seems happy about it.

Added by: tomek, 2015 V 07

Thanks, I will change it to pop_back().