samedi 14 septembre 2019

Storing lambda without templatizing class

class what
{
   template<class T>
  what(T& t) {}
};

Here T is lambda, how to store it in a variable without templatizing whole class?

Aucun commentaire:

Enregistrer un commentaire