you mean i can't overload the printf with a printf(Type& ) operator and use varg in the function?
Not really. I assert it would be very difficult to create useful overloads
printf so that it usually behaves similarly to that of the C library. The problem is that you'll have to overload it for
every type combination that you'll ever expect to write.
Now, some libraries do provide mechanisms for introducing new types into
printf's mechanism, and this should be doable. (But, of course, library specific)
One advantage that you should not ignore is this:
count << setprecision(5) << value << endl
is
much clearer than
printf("%5f", value)
in fact, I suspect I have the
printf version wrong; I have to hit the man pages any time I want to do something nontrivial with C-style i/o. At one time, it used to take quite a while to find the relevant entry, but I've had to do it often enough that I can usually remember at where and in what man page I need to look.