]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make the Point<> class a bit safer.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 23 Mar 1998 08:52:55 +0000 (08:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 23 Mar 1998 08:52:55 +0000 (08:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@89 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/point.h

index dd6d913d9020d5ef29b4f8dfb3066cd0c8b41401..a1574e0991551568d3e5969cf8d6835bafc02af4 100644 (file)
@@ -34,14 +34,14 @@ class Point {
                                      *  Constructor. Initialize all entries
                                      * to zero.
                                      */
-    Point ();
+    explicit Point ();
                                     /**
                                      *  Constructor for one dimensional points. This
                                      *  function is only implemented for #dim==1#
                                      *  since the usage is considered unsafe
                                      *  for points with #dim!=1#.
                                      */
-    Point (const double x);
+    explicit Point (const double x);
 
                                     /**
                                      *  Constructor for two dimensional points. This

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.