From fd51159b9f1e587422d761da7c8399807b1f3bda Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 7 Jul 2015 12:51:25 +0200 Subject: [PATCH] [MaL] Prevent compiler from implicit conversion constructor args. --- MathLib/TemplatePoint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MathLib/TemplatePoint.h b/MathLib/TemplatePoint.h index 63024259530..a1bc263d0bb 100644 --- a/MathLib/TemplatePoint.h +++ b/MathLib/TemplatePoint.h @@ -42,12 +42,12 @@ public: * * @param x std::array containing the coordinates of the point */ - TemplatePoint(std::array<T,DIM> const& x); + explicit TemplatePoint(std::array<T,DIM> const& x); /** constructor - constructs a TemplatePoint object \param x values for three coordinates */ - TemplatePoint (T const* x); + explicit TemplatePoint (T const* x); /** virtual destructor */ virtual ~TemplatePoint() {} -- GitLab