I am coding in C++ and have a few questions regarding the ellipsis:
Is it possible to pass in class or class pointer into the ellipsis?
Basically what I want to do is to pass in variable number of arguments in the type of
char*
andclass
. I am using ellipsis currently and trying to figure out how to pass in the class. If ellipsis isn't applicable over here, what are the options available?
I want to let the user to directly call the function using func( params 1, params2, ...)
without explicitly assigning the params into a vector or array first before passing the vector or array as argument to the function.