Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kirill Terekhov
INMOST
Commits
ef8ea957
Commit
ef8ea957
authored
Jun 13, 2015
by
Alexander Danilov
Browse files
Examples: OldDrawGrid: drop C++11 dependence
Replace str.back() with *str.rbegin()
parent
2ce4219c
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/OldDrawGrid/main.cpp
View file @
ef8ea957
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment