You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could have misunderstood how to use clipp properly but I have found using multiple optional numeric values with leading dot leads to incorrect parsing, for example:
double a, b;
auto FOO = (command("foo").set(selected,mode::FOO),
opt_value("a", a) & opt_value("b", b));
gives the correct values when called as "> foo 0.1 0.2", but when called as "> foo .1 .2" this results in
a = 0
b = 1.2
The text was updated successfully, but these errors were encountered:
precsim
changed the title
Parse error with leading dots
Parse error for float/double with leading dot
Sep 20, 2020
I could have misunderstood how to use clipp properly but I have found using multiple optional numeric values with leading dot leads to incorrect parsing, for example:
gives the correct values when called as "> foo 0.1 0.2", but when called as "> foo .1 .2" this results in
The text was updated successfully, but these errors were encountered: