From 18c6b48b65a15713215620d29e577ed541a3966a Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Wed, 20 Apr 2016 17:39:07 +0200
Subject: [PATCH] [MaL] Define default TemplateVector3::op=.

Modernize default ctor definitions.
---
 MathLib/Vector3.h | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/MathLib/Vector3.h b/MathLib/Vector3.h
index 1b98887e206..7d9f0307fda 100644
--- a/MathLib/Vector3.h
+++ b/MathLib/Vector3.h
@@ -35,7 +35,7 @@ public:
 	/**
 	 * Default constructor. All coordinates are set to zero.
 	 */
-	TemplateVector3() : TemplatePoint<T>() {}
+	TemplateVector3() = default;
 
 	TemplateVector3(T x0, T x1, T x2)
 	{
@@ -47,9 +47,8 @@ public:
 	/**
 	 * Copy constructor.
 	 */
-	TemplateVector3(TemplateVector3<T> const& v) :
-		TemplatePoint<T>(v)
-	{}
+	TemplateVector3(TemplateVector3<T> const& v) = default;
+	TemplateVector3<T>& operator=(TemplateVector3<T> const& v) = default;
 
 	/**
 	 * Construct Vector3 from TemplatePoint.
@@ -69,8 +68,6 @@ public:
 		this->_x[2] = b[2] - a[2];
 	}
 
-	~TemplateVector3() {}
-
 	// vector arithmetic
 	TemplateVector3 operator+(TemplateVector3 const& v) const
 	{
-- 
GitLab