RE: function overloading and variadic arguments

2007-09-21 Thread Dave Korn
On 20 September 2007 20:30, Peter A. Felvegi wrote: i'd like to hear your comments. Is va_list a typedef for char* on your system, then? What ever happened to it being an alias for __builtin_va_list via __gnuc_va_list? cheers, DaveK -- Can't think of a witty .sigline today

Re: function overloading and variadic arguments

2007-09-21 Thread Peter A. Felvegi
i'd like to hear your comments. Is va_list a typedef for char* on your system, then? What ever happened to it being an alias for __builtin_va_list via __gnuc_va_list? i don't know what happened, but it seems like a char*. my system is a debian i636 etch, here are compiler versions: $

function overloading and variadic arguments

2007-09-20 Thread Peter A. Felvegi
hello, today i've spent a few hours debugging... consider the following code: 888888 // test.cpp #include stdarg.h #include stdio.h int prn(const char* fmt_); int prn(const char* fmt_, ...) __attribute__((format(printf, 1, 2))); int prn(const char* fmt_, va_list