feat: add initializer list interface to eoFunctorStore
Easier to use while state initialize combined operators.
This commit is contained in:
parent
e0e1cb8bc9
commit
77921fea0c
1 changed files with 8 additions and 0 deletions
|
|
@ -85,6 +85,14 @@ public:
|
||||||
return this->storeFunctor(f);
|
return this->storeFunctor(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow to pass initializer lists of pointers, for example for edoCombinedContinue.
|
||||||
|
template<class Functor, class Args>
|
||||||
|
Functor& pack( std::initializer_list<Args> args )
|
||||||
|
{
|
||||||
|
Functor* f = new Functor(args);
|
||||||
|
return this->storeFunctor(f);
|
||||||
|
}
|
||||||
|
|
||||||
private :
|
private :
|
||||||
|
|
||||||
/** no copying allowed */
|
/** no copying allowed */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue