From f69368bbade08295db8becf44a606c0429470ef8 Mon Sep 17 00:00:00 2001 From: Eyal Rozenberg Date: Thu, 22 Aug 2024 00:55:20 +0300 Subject: [PATCH] Fixes #666, regards #664: Removing a seemingly-redundant constructor of `poor_mans_optional` from `const T&&` --- src/cuda/api/detail/optional.hpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/cuda/api/detail/optional.hpp b/src/cuda/api/detail/optional.hpp index 7c671d2d..fe42317c 100644 --- a/src/cuda/api/detail/optional.hpp +++ b/src/cuda/api/detail/optional.hpp @@ -63,13 +63,6 @@ struct poor_mans_optional { return *this; } - poor_mans_optional &operator=(const T &&value) noexcept(::std::is_nothrow_move_assignable::value) - { - has_value_ = true; - maybe_value.value = ::std::move(value); - return *this; - } - poor_mans_optional &operator=(no_value_t) { has_value_ = false;