diff --git a/lib/lattice/Grid_lattice_peekpoke.h b/lib/lattice/Grid_lattice_peekpoke.h index 44d2a71f..7bffdbb8 100644 --- a/lib/lattice/Grid_lattice_peekpoke.h +++ b/lib/lattice/Grid_lattice_peekpoke.h @@ -10,9 +10,8 @@ namespace Grid { //////////////////////////////////////////////////////////////////////////////////////////////////// // Peek internal indices of a Lattice object //////////////////////////////////////////////////////////////////////////////////////////////////// - template - inline auto peekIndex(const Lattice &lhs) - -> Lattice(lhs._odata[0]))> + template + auto peekIndex(const Lattice &lhs) -> Lattice(lhs._odata[0]))> { Lattice(lhs._odata[0]))> ret(lhs._grid); PARALLEL_FOR_LOOP @@ -22,8 +21,7 @@ PARALLEL_FOR_LOOP return ret; }; template - inline auto peekIndex(const Lattice &lhs,int i) - -> Lattice(lhs._odata[0],i))> + auto peekIndex(const Lattice &lhs,int i) -> Lattice(lhs._odata[0],i))> { Lattice(lhs._odata[0],i))> ret(lhs._grid); PARALLEL_FOR_LOOP @@ -33,8 +31,7 @@ PARALLEL_FOR_LOOP return ret; }; template - inline auto peekIndex(const Lattice &lhs,int i,int j) - -> Lattice(lhs._odata[0],i,j))> + auto peekIndex(const Lattice &lhs,int i,int j) -> Lattice(lhs._odata[0],i,j))> { Lattice(lhs._odata[0],i,j))> ret(lhs._grid); PARALLEL_FOR_LOOP @@ -47,7 +44,7 @@ PARALLEL_FOR_LOOP //////////////////////////////////////////////////////////////////////////////////////////////////// // Poke internal indices of a Lattice object //////////////////////////////////////////////////////////////////////////////////////////////////// - template inline + template void pokeIndex(Lattice &lhs,const Lattice(lhs._odata[0]))> & rhs) { PARALLEL_FOR_LOOP @@ -55,7 +52,7 @@ PARALLEL_FOR_LOOP pokeIndex(lhs._odata[ss],rhs._odata[ss]); } } - template inline + template void pokeIndex(Lattice &lhs,const Lattice(lhs._odata[0],0))> & rhs,int i) { PARALLEL_FOR_LOOP @@ -63,8 +60,8 @@ PARALLEL_FOR_LOOP pokeIndex(lhs._odata[ss],rhs._odata[ss],i); } } - template inline - void pokeIndex(Lattice &lhs,const Lattice(lhs._odata[0],0,0))> & rhs,int i,int j) + template + void pokeIndex(Lattice &lhs,const Lattice(lhs._odata[0],0,0))> & rhs,int i,int j) { PARALLEL_FOR_LOOP for(int ss=0;ssoSites();ss++){