Commit ef8ea957 authored by Alexander Danilov's avatar Alexander Danilov
Browse files

Examples: OldDrawGrid: drop C++11 dependence

Replace str.back() with *str.rbegin()
parent 2ce4219c
...@@ -2179,7 +2179,7 @@ public: ...@@ -2179,7 +2179,7 @@ public:
done = true; done = true;
glutPostRedisplay(); glutPostRedisplay();
} }
else if( type == String || ( (c >= '0' && c <= '9') || ((str.empty() || tolower(str.back()) == 'e') && c=='+' || c=='-') || (type == Double && (c=='.' || c=='e' || c == 'E'))) ) else if( type == String || ( (c >= '0' && c <= '9') || ((str.empty() || tolower(*str.rbegin()) == 'e') && c=='+' || c=='-') || (type == Double && (c=='.' || c=='e' || c == 'E'))) )
{ {
str += c; str += c;
glutPostRedisplay(); glutPostRedisplay();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment