From: Wolfgang Bangerth Date: Wed, 3 May 2006 14:45:34 +0000 (+0000) Subject: Make the constructor explicit. X-Git-Tag: v8.0.0~11788 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38cc252065aa8ba0db5e5386277a9376f1abde7e;p=dealii.git Make the constructor explicit. git-svn-id: https://svn.dealii.org/trunk@13017 0785d39b-7218-0410-832d-ea1e28bc413d --- 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