We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f05c35 commit 34b2f65Copy full SHA for 34b2f65
runtime/core/result.h
@@ -70,8 +70,8 @@ class Result final {
70
/// Value copy constructor.
71
/* implicit */ Result(const T& val) : value_(val), hasValue_(true) {}
72
73
- /// Value move constructor.
74
- /* implicit */ Result(T&& val) : value_(std::move(val)), hasValue_(true) {}
+ /// Value forwarding constructor.
+ /* implicit */ Result(T&& val) : value_(std::forward<T>(val)), hasValue_(true) {}
75
76
/// Result move constructor.
77
/* implicit */ Result(Result&& rhs) noexcept : hasValue_(rhs.hasValue_) {
0 commit comments