represents a number, but silently (and erroneously) returned zero if the
string was invalid.
git-svn-id: https://svn.dealii.org/trunk@12400
0785d39b-7218-0410-832d-
ea1e28bc413d
char *endptr;
long int i = std::strtol (s.c_str(), &endptr, 10);
// assert there was no error
- AssertThrow ((s.c_str()!='\0') || (*endptr == '\0'),
- ExcConversionError(s));
+ AssertThrow (*endptr == '\0', ExcConversionError(s));
return i;
}
<h3>base</h3>
<ol>
+ <li> <p>Fixed: The <code class="member">ParameterHandler::get_integer</code>
+ had an erroneous check that the value given for a parameter really
+ represented an integer. This check always succeeded, even in face of an
+ error, and a zero value was returned every time the value in the
+ parameter file happened to be not an integer.
+ <br>
+ (WB 2006/02/17)
+ </p>
+
<li> <p>Improved: The <code class="class">ComponentSelect</code> class can
now also handle the case that one wants to select multiple vector
components at once, not only a single one.
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams