From c9cd9fb71adb907a626211415d9e46453b343a2c Mon Sep 17 00:00:00 2001 From: Mark Harris <783069+harrism@users.noreply.github.com> Date: Thu, 9 Nov 2023 02:52:37 +0000 Subject: [PATCH] Hidden friends need not be private --- include/rmm/cuda_device.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/rmm/cuda_device.hpp b/include/rmm/cuda_device.hpp index 64fe86618..d9e0fef4b 100644 --- a/include/rmm/cuda_device.hpp +++ b/include/rmm/cuda_device.hpp @@ -43,9 +43,6 @@ struct cuda_device_id { /// @briefreturn{The wrapped integer value} [[nodiscard]] constexpr value_type value() const noexcept { return id_; } - private: - value_type id_; - /** * @brief Compare two `cuda_device_id`s for equality. * @@ -71,6 +68,9 @@ struct cuda_device_id { { return lhs.value() != rhs.value(); } + + private: + value_type id_; }; /**