| 137 | class TCreateVecObjectS { |
| 138 | public: |
| 139 | static Base * Create (int dim, bool iscomplex, ARG & ... arg) |
| 140 | { |
| 141 | if (dim == ACTDIM) |
| 142 | { |
| 143 | if (iscomplex) |
| 144 | return new Object<Vec<ACTDIM,Complex> > (arg...); |
| 145 | else |
| 146 | return new Object<Vec<ACTDIM,double> > (arg...); |
| 147 | } |
| 148 | else return TCreateVecObjectS<Object, Base, ACTDIM-1, ARG...>::Create(dim, iscomplex, arg...); |
| 149 | } |
| 150 | }; |
| 151 | |
| 152 | template <template <class T> class Object, class Base, typename ... ARG> |