Comparing Variadic Functions: C vs C++
I recently implemented a logging library in C and was reminded of how much simpler variadic functions are in C++. Consider a common variadic use case: format strings with functions like printf or an equivalent log interface: void log(const char *fmt, ...) __printf_check(1,2); Inside the function implementation, you'll see the C variadic constructs: // Declare …
