pass variable arguments to another function c++