diff --git a/format.h b/format.h index 6b6951ac..4967b81a 100644 --- a/format.h +++ b/format.h @@ -1046,7 +1046,7 @@ struct NamedArg : Arg { template NamedArg(BasicStringRef argname, const T &value) - : name(argname), Arg(MakeValue(value)) { + : Arg(MakeValue(value)), name(argname) { type = static_cast(MakeValue::type(value)); } };