Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce 2 tweaks to DeviceVector to improve safety of the class
1. Delete implicitly declared constructors/assignment operations. We could definitely define these, but currently they can lead to dereferencing null pointers or double-freeing pointers 2. While I was here, I also added an explicit check that the elements of the vector are trivially copyable. This is the formal requirement for being able to copy an object with a variant of memcpy.
- Loading branch information