Fix warnings

Child attribute was being instantiated before parent attribute, gives warnings under GCC 4.9.1
This commit is contained in:
jkflying 2015-08-17 13:59:45 +02:00
parent 32fbc083b7
commit 11395c4f09

View File

@ -1046,7 +1046,7 @@ struct NamedArg : Arg {
template <typename T> template <typename T>
NamedArg(BasicStringRef<Char> argname, const T &value) 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)); type = static_cast<internal::Arg::Type>(MakeValue<Char>::type(value));
} }
}; };