From 935541bcb019fb3cf485dc8b0120dac76412852e Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 10 Sep 2022 21:26:03 +0000 Subject: [PATCH] [util] Make math types have implicit copy assignments We define implicit copy constructors, should also define implicit copy assignments. --- src/util/util_matrix.h | 1 + src/util/util_vector.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/util/util_matrix.h b/src/util/util_matrix.h index 98f260f88..559c7b989 100644 --- a/src/util/util_matrix.h +++ b/src/util/util_matrix.h @@ -43,6 +43,7 @@ namespace dxvk { } Matrix4(const Matrix4& other) = default; + Matrix4& operator=(const Matrix4& other) = default; Vector4& operator[](size_t index); const Vector4& operator[](size_t index) const; diff --git a/src/util/util_vector.h b/src/util/util_vector.h index 77cdf2942..43deeb922 100644 --- a/src/util/util_vector.h +++ b/src/util/util_vector.h @@ -22,6 +22,7 @@ namespace dxvk { : x(xyzw[0]), y(xyzw[1]), z(xyzw[2]), w(xyzw[3]) { } Vector4Base(const Vector4Base& other) = default; + Vector4Base& operator=(const Vector4Base& other) = default; inline T& operator[](size_t index) { return data[index]; } inline const T& operator[](size_t index) const { return data[index]; }