From f0060f83357d5aac79d77712c6e44a82ca9b340f Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 11 Jul 2015 18:14:33 -0500 Subject: [PATCH] Allow direct typecasting of Result shim util class --- src/xenia/kernel/util/shim_utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/kernel/util/shim_utils.h b/src/xenia/kernel/util/shim_utils.h index 9443d3908..1ac2e1b58 100644 --- a/src/xenia/kernel/util/shim_utils.h +++ b/src/xenia/kernel/util/shim_utils.h @@ -280,6 +280,7 @@ class Result { } Result() = delete; Result& operator=(const Result&) = delete; + operator T() const { return value_; } private: T value_;