Passing std::vector items to variadic function

前端 未结 5 1716
天涯浪人
天涯浪人 2021-01-17 17:26

I\'m using gcc 4.6. Assume that there is a vector v of parameters I have to pass to a variadic function f(const char* format, ...).

One approach of doing this is:

5条回答
提交回复
热议问题