This commit is contained in:
vitaut 2015-04-21 07:17:00 -07:00
parent 8af48bbaf1
commit 926b7680ea

View File

@ -1494,14 +1494,13 @@ inline uint64_t make_type(FMT_GEN15(FMT_ARG_TYPE_DEFAULT)) {
// Defines a variadic function returning void. // Defines a variadic function returning void.
# define FMT_VARIADIC_VOID(func, arg_type) \ # define FMT_VARIADIC_VOID(func, arg_type) \
template <typename... Args> \ template <typename... Args> \
void func(arg_type arg1, const Args & ... args) { \ void func(arg_type arg0, const Args & ... args) { \
namespace internal = fmt::internal; \ namespace internal = fmt::internal; \
typedef typename internal::SelectValueType<sizeof...(Args)>::Type Value; \ typedef typename internal::SelectValueType<sizeof...(Args)>::Type Value; \
const Value array[ \ const Value array[internal::NonZero<sizeof...(Args)>::VALUE] = { \
internal::NonZero<sizeof...(Args)>::VALUE] = { \
internal::MakeValue<Char>(args)... \ internal::MakeValue<Char>(args)... \
}; \ }; \
func(arg1, ArgList(internal::make_type(args...), array)); \ func(arg0, ArgList(internal::make_type(args...), array)); \
} }
// Defines a variadic constructor. // Defines a variadic constructor.