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

Commit 470c276

Browse files
committed
Initialize members in cuda_optional detail class.
1 parent f7ffe16 commit 470c276

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
@@ -603,8 +603,8 @@ namespace core {
603603
template <class T>
604604
class cuda_optional
605605
{
606-
cudaError_t status_;
607-
T value_;
606+
cudaError_t status_{};
607+
T value_{};
608608

609609
public:
610610
__host__ __device__

0 commit comments

Comments
 (0)