Add ArgVisitor::report_unhandled_arg
and get rid of FMT_RETURN_AFTER_THROW.
This commit is contained in:
1 parent
d618f8baac
commit
d4ea2d7fcb
2 files changed
+8
-7
No files matched your search
@@ -962,7 +962,12 @@ class MakeArg : public Arg {
|
||||
template <typename Impl, typename Result>
|
||||
class ArgVisitor {
|
||||
public:
|
||||
Result visit_unhandled_arg() { return Result(); }
|
||||
void report_unhandled_arg() {}
|
||||
|
||||
Result visit_unhandled_arg() {
|
||||
FMT_DISPATCH(report_unhandled_arg());
|
||||
return Result();
|
||||
}
|
||||
|
||||
Result visit_int(int value) {
|
||||
return FMT_DISPATCH(visit_any_int(value));
|
||||
|
||||
Reference in new issue
Block a user