Skip to content
Snippets Groups Projects
Commit 18c6b48b authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] Define default TemplateVector3::op=.

Modernize default ctor definitions.
parent f586f979
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ public: ...@@ -35,7 +35,7 @@ public:
/** /**
* Default constructor. All coordinates are set to zero. * Default constructor. All coordinates are set to zero.
*/ */
TemplateVector3() : TemplatePoint<T>() {} TemplateVector3() = default;
TemplateVector3(T x0, T x1, T x2) TemplateVector3(T x0, T x1, T x2)
{ {
...@@ -47,9 +47,8 @@ public: ...@@ -47,9 +47,8 @@ public:
/** /**
* Copy constructor. * Copy constructor.
*/ */
TemplateVector3(TemplateVector3<T> const& v) : TemplateVector3(TemplateVector3<T> const& v) = default;
TemplatePoint<T>(v) TemplateVector3<T>& operator=(TemplateVector3<T> const& v) = default;
{}
/** /**
* Construct Vector3 from TemplatePoint. * Construct Vector3 from TemplatePoint.
...@@ -69,8 +68,6 @@ public: ...@@ -69,8 +68,6 @@ public:
this->_x[2] = b[2] - a[2]; this->_x[2] = b[2] - a[2];
} }
~TemplateVector3() {}
// vector arithmetic // vector arithmetic
TemplateVector3 operator+(TemplateVector3 const& v) const TemplateVector3 operator+(TemplateVector3 const& v) const
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment