Skip to content

Commit

Permalink
#2043: Suppress nvcc's bogus implicit generation of a copy constructo…
Browse files Browse the repository at this point in the history
…r for an uncopyable class
  • Loading branch information
PhilMiller committed Dec 15, 2022
1 parent 5d748ec commit ccd13a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vt/vrt/collection/types/storage/storable.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ struct Storable {

Storable() = default;

// Workaround for nvcc from CUDA 11.7 - in spite of the absence of
// any ODR-use of this copy constructor, it tries to generate it
// implicitly. In doing so, it requires that the unique_ptr elements
// of map_ be copyable, which they are not, and so compilation
// fails. Explicitly deleting the copy constructor suppresses that
// misbehavior.
Storable(Storable const&) = delete;

/**
* \brief Serializer
*
Expand Down

0 comments on commit ccd13a3

Please sign in to comment.