mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +01:00
[util] Make math types have implicit copy assignments
We define implicit copy constructors, should also define implicit copy assignments.
This commit is contained in:
parent
99e01d64f7
commit
935541bcb0
@ -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;
|
||||
|
@ -22,6 +22,7 @@ namespace dxvk {
|
||||
: x(xyzw[0]), y(xyzw[1]), z(xyzw[2]), w(xyzw[3]) { }
|
||||
|
||||
Vector4Base(const Vector4Base<T>& other) = default;
|
||||
Vector4Base& operator=(const Vector4Base<T>& other) = default;
|
||||
|
||||
inline T& operator[](size_t index) { return data[index]; }
|
||||
inline const T& operator[](size_t index) const { return data[index]; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user