Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit ebf3581

Browse files
committed
Initialize members in cuda_optional detail class.
1 parent 48ce76a commit ebf3581

File tree

1 file changed

+2
-2
lines changed
  • thrust/system/cuda/detail/core

1 file changed

+2
-2
lines changed

thrust/system/cuda/detail/core/util.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ namespace core {
600600
template <class T>
601601
class cuda_optional
602602
{
603-
cudaError_t status_;
604-
T value_;
603+
cudaError_t status_{};
604+
T value_{};
605605

606606
public:
607607
__host__ __device__

0 commit comments

Comments
 (0)