mercredi 28 juin 2017

How to pass parameters to a variadic function, dynamically?

Consider some variadic function foo(int...args).

I want to be able to call it dynamically. That is, the parameters will be given to me through some simple data structure like an array/vector etc (doesn't really matter).

How can I pass them to call foo()?

p.s.
I'm using C++11

Aucun commentaire:

Enregistrer un commentaire