From 38cc252065aa8ba0db5e5386277a9376f1abde7e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 3 May 2006 14:45:34 +0000 Subject: [PATCH] Make the constructor explicit. git-svn-id: https://svn.dealii.org/trunk@13017 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/quadrature.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/deal.II/base/include/base/quadrature.h b/deal.II/base/include/base/quadrature.h index 513f084053..f11238ea49 100644 --- a/deal.II/base/include/base/quadrature.h +++ b/deal.II/base/include/base/quadrature.h @@ -98,8 +98,17 @@ class Quadrature : public Subscriptor /** * Constructor. + * + * This constructor is marked as + * explicit to avoid involuntary + * accidents like in + * hp::QCollection@ + * q_collection(3) where + * hp::QCollection@ + * q_collection(QGauss@(3)) + * was meant. */ - Quadrature (const unsigned int n_quadrature_points); + explicit Quadrature (const unsigned int n_quadrature_points); /** * Build this quadrature formula -- 2.39.5