diff --git a/eo/src/eoFunctorStore.h b/eo/src/eoFunctorStore.h index 889b832de..7ed2947ac 100644 --- a/eo/src/eoFunctorStore.h +++ b/eo/src/eoFunctorStore.h @@ -85,6 +85,14 @@ public: return this->storeFunctor(f); } + // Allow to pass initializer lists of pointers, for example for edoCombinedContinue. + template + Functor& pack( std::initializer_list args ) + { + Functor* f = new Functor(args); + return this->storeFunctor(f); + } + private : /** no copying allowed */