mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Fix warnings
Child attribute was being instantiated before parent attribute, gives warnings under GCC 4.9.1
This commit is contained in:
parent
32fbc083b7
commit
11395c4f09
2
format.h
2
format.h
@ -1046,7 +1046,7 @@ struct NamedArg : Arg {
|
||||
|
||||
template <typename T>
|
||||
NamedArg(BasicStringRef<Char> argname, const T &value)
|
||||
: name(argname), Arg(MakeValue<Char>(value)) {
|
||||
: Arg(MakeValue<Char>(value)), name(argname) {
|
||||
type = static_cast<internal::Arg::Type>(MakeValue<Char>::type(value));
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user