S
S
shasoft2020-11-08 16:37:55
C++ / C#
shasoft, 2020-11-08 16:37:55

How to call a variadic function in C++ from a variadic function?

Have a function

void a(...)
{
}

Have a function
void b(std::string key,...)
{
  std::string key2 = key+"#";
  a(key2,...); // ?????
}

How to make a function call in b passing it key2 and all variable parameters passed to it? ps interested in a solution without the __ARGS__ macro

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-11-08
@SaNNy32

https://stackoverflow.com/questions/5383642/to-inv...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question