Forwarding arguments in non-variadic "normal" functions

Viewed 48

I find myself having to write a lot of wrapper functions for things like PIMPL... i.e.:

Runner::Runner(int a, int b, int c) {
  handle_ = make_shared<impl>(a, b, c);
}

Where arguments are really intended to be directly forwarded to a lower level function.

Is there a way to do this in C++ without having to do this typing?

I guess I want std::forward, but that only works with variadic template functions per my understanding.

0 Answers
Related