Allow direct typecasting of Result shim util class
This commit is contained in:
@@ -280,6 +280,7 @@ class Result {
|
||||
}
|
||||
Result() = delete;
|
||||
Result& operator=(const Result&) = delete;
|
||||
operator T() const { return value_; }
|
||||
|
||||
private:
|
||||
T value_;
|
||||
|
||||
Reference in New Issue
Block a user