Commit 222fae09 authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

fix istringstream test in Engine (was reverted) + review gcc flags

parent d6e06e30
......@@ -4,7 +4,7 @@ use class *
#compiler options
#default is gcc here are the C++ compiler options
macro cppflags " -O3 -pipe -ansi -fPIC -Wall "
macro cppflags " -O2 -pipe -fPIC -Wall "
#do we need optimzations here?
#macro_append cppflags "-ffast-math -m64 "
......
......@@ -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");
}
......
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