Compilation problem with STLPort.
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.
Maybe just pop_back() is sufficient? Both gcc&clang seems happy about it.
Thanks, I will change it to pop_back().