Add ArgVisitor::report_unhandled_arg
and get rid of FMT_RETURN_AFTER_THROW.
This commit is contained in:
7
format.h
7
format.h
@@ -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