
28 Dec
2009
28 Dec
'09
2:45 p.m.
Eric Niebler <eric <at> boostpro.com> writes:
On 12/28/2009 7:03 AM, Gennadiy Rozental wrote:
What is the proper (portable) way to copy va_list? Or at least what is the workaround for this compiler?
There isn't a portable way to copy a va_list. va_copy is not standard. On some systems it's __va_copy, and other systems (e.g. msvc) don't have it at all. Can the code in question be rewritten to not need it?
I essentially need to do double pas through va_list. I can't reinitialize it cause I am doing this in a function which takes va_list as argument. Can I use va_copy with gcc 4? Gennadiy