diff --git a/src/common/math_util.h b/src/common/math_util.h
index cff3d48c5cfaff1665ed4ac77896169a43535ffd..d6c35ee899b249465507f466d6147bdaa353cdb0 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