diff options
Diffstat (limited to 'thrust/optional.h')
-rw-r--r-- | thrust/optional.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/thrust/optional.h b/thrust/optional.h index 52008e4f..5850b6ea 100644 --- a/thrust/optional.h +++ b/thrust/optional.h @@ -1580,7 +1580,7 @@ public: *this = nullopt; this->construct(std::forward<Args>(args)...); - return value(); + return this->m_value; } /// \group emplace @@ -1594,7 +1594,7 @@ public: emplace(std::initializer_list<U> il, Args &&... args) { *this = nullopt; this->construct(il, std::forward<Args>(args)...); - return value(); + return this->m_value; } /// Swaps this optional with the other. |