va_copy — porting to visual C++?

前端 未结 4 911
不思量自难忘°
不思量自难忘° 2020-12-15 19:35

A previous question showed a nice way of printing to a string. The answer involved va_copy:

std::string format (const char *fmt, ...);
{
   va_list ap;
   va         


        
4条回答
  •  感情败类
    2020-12-15 20:32

    For Windows, you can simply define va_copy yourself:

    #define va_copy(dest, src) (dest = src)
    

提交回复
热议问题