From 670a59753b69a55ca102ec723946fad682258789 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 19 Apr 2016 07:17:10 +0200 Subject: [PATCH] [MaL] Avoid warn about defi. of impl. copy constr. Clang reports: warning: definition of implicit copy constructor for 'TemplatePoint<double, 3>' is deprecated because it has a user-declared destructor [-Wdeprecated] --- MathLib/TemplatePoint.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MathLib/TemplatePoint.h b/MathLib/TemplatePoint.h index 328ba9344e5..8ddcf5b7e49 100644 --- a/MathLib/TemplatePoint.h +++ b/MathLib/TemplatePoint.h @@ -46,7 +46,9 @@ public: explicit TemplatePoint(std::array<T,DIM> const& x); /** virtual destructor */ - virtual ~TemplatePoint() {} + virtual ~TemplatePoint() = default; + + TemplatePoint(TemplatePoint const& other) = default; /** \brief const access operator * The access to the point coordinates is like the access to a field. Code example: -- GitLab