Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
Xavier Garrido
CAMEL
Commits
ee524eb8
Commit
ee524eb8
authored
Sep 24, 2018
by
Xavier Garrido
Browse files
using `good` function (compatible with recent version of g++)
parent
094ace42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/camel/Engine.cc
src/camel/Engine.cc
+2
-1
No files found.
src/camel/Engine.cc
View file @
ee524eb8
...
...
@@ -102,7 +102,8 @@ Engine::get(const std::string& key){
planck_assert
(
key
.
substr
(
key
.
size
()
-
1
,
1
)
==
")"
,
key
+
": keyword not finishing with )"
);
var
=
key
.
substr
(
0
,
index
);
istringstream
isNum
(
key
.
substr
(
index
+
1
,
key
.
size
()
-
index
-
2
));
planck_assert
(
isNum
>>
z
,
key
+
": Engine cannot decode z value in keyword"
);
isNum
>>
z
;
planck_assert
(
!
isNum
.
good
(),
key
+
": Engine cannot decode z value in keyword"
);
}
if
(
var
==
"z_drag"
)
return
z_drag
();
else
if
(
var
==
"rs_drag"
)
return
rs_drag
();
...
...
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