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
Because argparse internal expects action to return some value, but this one returns void.
My workaround for that is to define using unit = std::tuple<>; and returns unit(), but this isn't nice to C++'s taste.
But it's possible to bake this workaround into argparse (even though there is no any<void>). Let's say we define a type similar to the unit above, call is none_internal. In action, detects the the input's return type:
Currently this code isn't allowed in argparse:
Because argparse internal expects action to return some value, but this one returns
void
.My workaround for that is to define
using unit = std::tuple<>;
and returnsunit()
, but this isn't nice to C++'s taste.But it's possible to bake this workaround into argparse (even though there is no
any<void>
). Let's say we define a type similar to theunit
above, call isnone_internal
. Inaction
, detects the the input's return type:The text was updated successfully, but these errors were encountered: