Fix type-safe formatting

This commit is contained in:
Nekotekina 2018-08-25 12:06:57 +03:00
parent 1d86c60548
commit 57f394e156
2 changed files with 7 additions and 6 deletions

View file

@ -74,8 +74,7 @@ namespace logs
if (UNLIKELY(sev <= enabled))
{
static constexpr fmt_type_info type_list[sizeof...(Args) + 1]{fmt_type_info::make<fmt_unveil_t<Args>>()...};
const u64 arg_array[sizeof...(Args) + 1]{fmt_unveil<Args>::get(args)...};
message{this, sev}.broadcast(fmt, type_list, arg_array);
message{this, sev}.broadcast(fmt, type_list, fmt_args_t<Args...>{fmt_unveil<Args>::get(args)...});
}
}