Passing Variable Number of Arguments with different type - C++

后端 未结 6 840
闹比i
闹比i 2020-11-30 09:33

I am coding in C++ and have a few questions regarding the ellipsis:

  1. Is it possible to pass in class or class pointer into the ellipsis?

  2. Basi

6条回答
  •  猫巷女王i
    2020-11-30 09:53

    True typesafe variable argument functions are possible with the newly introduced feature variable template arguments in C++0x

    You can also get by using boost::any

提交回复
热议问题