]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make the constructor explicit.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 May 2006 14:45:34 +0000 (14:45 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 May 2006 14:45:34 +0000 (14:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@13017 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/quadrature.h

index 513f0840536aaa5e471e63ea2d2ca42f8093f370..f11238ea4995cc4cc7d1c7c79ad1077d0bc1e555 100644 (file)
@@ -98,8 +98,17 @@ class Quadrature : public Subscriptor
 
                                     /**
                                      * Constructor.
+                                     *
+                                     * This constructor is marked as
+                                     * explicit to avoid involuntary
+                                     * accidents like in
+                                     * <code>hp::QCollection@<dim@>
+                                     * q_collection(3)</code> where
+                                     * <code>hp::QCollection@<dim@>
+                                     * q_collection(QGauss@<dim@>(3))</code>
+                                     * was meant.
                                      */
-    Quadrature (const unsigned int n_quadrature_points);
+    explicit Quadrature (const unsigned int n_quadrature_points);
 
                                     /**
                                      * Build this quadrature formula

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.