Don't bring Arg struct into global namespace

This fixes compiling fmtlib in header-only mode when user code also has
something called 'Arg' defined. Now always qualifying Arg struct with
full namespace.
This commit is contained in:
Sean LK 2017-03-05 23:04:12 +00:00
parent cc736e7611
commit e34371656d

View File

@ -455,9 +455,9 @@ void internal::FixedBuffer<Char>::grow(std::size_t) {
FMT_THROW(std::runtime_error("buffer overflow"));
}
FMT_FUNC Arg internal::FormatterBase::do_get_arg(
FMT_FUNC fmt::internal::Arg internal::FormatterBase::do_get_arg(
unsigned arg_index, const char *&error) {
Arg arg = args_[arg_index];
fmt::internal::Arg arg = args_[arg_index];
switch (arg.type) {
case Arg::NONE:
error = "argument index out of range";