1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Must avoid non-trivial copy constructors

This commit is contained in:
Peter Boyle 2020-05-25 08:35:28 -07:00
parent 7bc0166c1c
commit 949ac3cd24

View File

@ -181,9 +181,15 @@ class CartesianStencilAccelerator {
template<class vobj,class cobj,class Parameters>
class CartesianStencilView : public CartesianStencilAccelerator<vobj,cobj,Parameters>
{
#ifndef GRID_UVM
std::shared_ptr<MemViewDeleter> Deleter;
#endif
public:
//
#ifdef GRID_UVM
CartesianStencilView (const CartesianStencilAccelerator<vobj,cobj,Parameters> &refer_to_me,ViewMode mode)
: CartesianStencilAccelerator<vobj,cobj,Parameters>(refer_to_me){};
#else
CartesianStencilView (const CartesianStencilView &refer_to_me)
: CartesianStencilAccelerator<vobj,cobj,Parameters>(refer_to_me), Deleter(refer_to_me.Deleter)
{ }
@ -199,7 +205,8 @@ class CartesianStencilView : public CartesianStencilAccelerator<vobj,cobj,Parame
mode,
AdviseDefault);
}
#endif
};
////////////////////////////////////////