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
Not sure what's wrong with this both argument and default_value are an integer but it still gets bad any cast error.
Command line argument test -T 3
Code
program.add_argument("-T", "--threads")
.default_value(6)
.help("specify how many threads you want to use");
unsigned intthreads=program.get<int>("-T"); //Bad any cast
The text was updated successfully, but these errors were encountered:
Not sure what's wrong with this both argument and default_value are an integer but it still gets bad any cast error.
Command line argument
test -T 3
Code
The text was updated successfully, but these errors were encountered: