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
222fae09
Commit
222fae09
authored
Sep 06, 2018
by
Plaszczynski Stephane
Browse files
fix istringstream test in Engine (was reverted) + review gcc flags
parent
d6e06e30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cmt/requirements-lite.generic
cmt/requirements-lite.generic
+1
-1
src/camel/Engine.cc
src/camel/Engine.cc
+3
-3
No files found.
cmt/requirements-lite.generic
View file @
222fae09
...
...
@@ -4,7 +4,7 @@ use class *
#
compiler
options
#
default
is
gcc
here
are
the
C
++
compiler
options
macro
cppflags
" -O
3
-pipe
-ansi
-fPIC -Wall "
macro
cppflags
" -O
2
-pipe -fPIC -Wall "
#
do
we
need
optimzations
here
?
#
macro_append
cppflags
"-ffast-math -m64 "
...
...
src/camel/Engine.cc
View file @
222fae09
...
...
@@ -104,10 +104,10 @@ 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
-
1
));
//
isNum >> z;
//
planck_assert(isNum.
fail
(),key+": Engine canot decode z value in keyword");
isNum
>>
z
;
planck_assert
(
isNum
.
good
(),
key
+
": Engine canot decode z value in keyword"
);
//SP: 5sep18 previuous lines fail (don't lnow why) so back to previous method
planck_assert
(
isNum
>>
z
,
key
+
": Engine canot decode z value in keyword"
);
//
planck_assert(isNum>>z,key+": Engine canot decode z value in keyword");
}
...
...
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