Is it possible to achieve this:
struct S
{
    int a;
    std::string s;
    template<typename... Args>
    S(Args... args)
    :  // what next?
    {
        // what next?
    }
};
Or is there any other way to achieve (something like) this? (std::tuple?)
 
Aucun commentaire:
Enregistrer un commentaire