jeudi 20 juillet 2017

Executing all Methods pointed to by a Template Parameter Pack

  1. Can I make a template parameter pack of method (=member function) pointers?
  2. If yes, is it possible to make a (template) function that executes all methods in its template parameter pack?

Simplifications:

  • The order of execution of the pointed methods does not matter.
  • All method pointers have the same signature (e.g. return bool, have the same base class, take no arguments)

Aucun commentaire:

Enregistrer un commentaire