mpf_class x("+0.73") aborts
tricaric at gmail.com
Tue May 13 07:55:19 CEST 2008
If you include a statement in your code such as
or any other string in the form "+XYZ", it will abort at runtime with:
terminate called after throwing an instance of 'std::invalid_argument'
I believe that a signed string, with a plus, should be a valid
argument. The same with a minus instead of a plus is valid, as it is
an unsigned value, of course.
Comments and solutions welcome.
More information about the gmp-bugs