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
Fortunately, this is a simple fix for double, int, and all numeric types. The segfault is because --gain is a std::string wrapped in a std::any and .get<double>("--gain") asks for the string to be cast to a double.
The fix is to use .scan<'g', double>() when adding the Argument. Or use .scan<'i', int>() for an int.
By default, it runs fine and prints 40.000.
If i run with
--gain 30.0
, I get a segmentation faultThe text was updated successfully, but these errors were encountered: