template<typename ...Args>
bool MyClass::dynaWraper(std::tuple<Args...> & res)
{
std::list<std::string> from_sth{"a", "1"};
// do some convert, to fetch in `res` with diffrent type.
}
And test code maybe like this,
std::tuple<std::string, int> tp;
MyClass c;
c.dynaWraper(tp);
So, how to do to let it work?I broke down.
Aucun commentaire:
Enregistrer un commentaire