Commit ef8ea957 authored by Alexander Danilov's avatar Alexander Danilov

Examples: OldDrawGrid: drop C++11 dependence

Replace str.back() with *str.rbegin()
parent 2ce4219c
......@@ -2179,7 +2179,7 @@ public:
done = true;
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;
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