mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-10 03:17:07 +01:00
Hadrons: type fix in module creation
This commit is contained in:
@ -245,7 +245,7 @@ template <typename M>
|
||||
void Environment::createModule(const std::string name,
|
||||
const typename M::Par &par)
|
||||
{
|
||||
ModPt pt(new M(name));
|
||||
std::unique_ptr<M> pt(new M(name));
|
||||
|
||||
pt->setPar(par);
|
||||
pushModule(pt);
|
||||
|
Reference in New Issue
Block a user