Skip to content
Snippets Groups Projects
Commit e30dfdc1 authored by yaskovet's avatar yaskovet
Browse files

Fix grid_sm: copy constructor template not allowed

parent cdbd5118
No related branches found
No related tags found
No related merge requests found
Pipeline #5711 failed
......@@ -365,6 +365,25 @@ public:
}
}
/*! \brief copy constructor
*
* \param g grid info
*
* construct a grid from another grid. As a copy constructor can't be template,
* the one above won't work for const grid_sm<N,S> & g, where S=T
*
*/
__device__ __host__ inline grid_sm(const grid_sm<N,T> & g)
{
size_tot = g.size_tot;
for (size_t i = 0 ; i < N ; i++)
{
sz[i] = g.sz[i];
sz_s[i] = g.sz_s[i];
}
}
// Static element to calculate total size
inline size_t totalSize(const size_t sz)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment