Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

common/math_util: Provide a template deduction guide for Common::Rectangle

Lioncashf2551410bfa0
diff --git a/src/common/math_util.h b/src/common/math_util.h
index cff3d48c5c..d6c35ee899 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -41,4 +41,7 @@ struct Rectangle {
}
};
+template <typename T>
+Rectangle(T, T, T, T)->Rectangle<T>;
+
} // namespace Common