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 1062b13Copy full SHA for 1062b13
runtime/core/result.h
@@ -70,8 +70,9 @@ 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)
75
+ : value_(std::forward<T>(val)), hasValue_(true) {}
76
77
/// Result move constructor.
78
/* implicit */ Result(Result&& rhs) noexcept : hasValue_(rhs.hasValue_) {
0 commit comments