From 8593d485799e04abd8d5a30bed5131f2608a915d Mon Sep 17 00:00:00 2001 From: archshift Date: Sun, 20 Jul 2014 15:01:15 -0700 Subject: Cuboid: added explicit copy assignment operator --- src/Cuboid.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Cuboid.h') diff --git a/src/Cuboid.h b/src/Cuboid.h index 960af130b..7bdb21b00 100644 --- a/src/Cuboid.h +++ b/src/Cuboid.h @@ -19,6 +19,8 @@ public: cCuboid(const Vector3i & a_p1, const Vector3i & a_p2) : p1(a_p1), p2(a_p2) {} cCuboid(int a_X1, int a_Y1, int a_Z1) : p1(a_X1, a_Y1, a_Z1), p2(a_X1, a_Y1, a_Z1) {} cCuboid(int a_X1, int a_Y1, int a_Z1, int a_X2, int a_Y2, int a_Z2) : p1(a_X1, a_Y1, a_Z1), p2(a_X2, a_Y2, a_Z2) {} + + cCuboid & operator=(cCuboid a_Other); void Assign(int a_X1, int a_Y1, int a_Z1, int a_X2, int a_Y2, int a_Z2); void Assign(const cCuboid & a_SrcCuboid); -- cgit v1.2.3