]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change the way a default object is created. A reference is assigned
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 26 Feb 2001 10:58:23 +0000 (10:58 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 26 Feb 2001 10:58:23 +0000 (10:58 +0000)
the address of a temporary. I am puzzled how this could ever have
worked, but it seems it has for about three years now...

git-svn-id: https://svn.dealii.org/trunk@4026 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria.h
deal.II/deal.II/source/grid/tria.cc

index 8efaf2af4d5bb97cc81b1a4494433e52a59db3a4..2828e3172d6be240b5a96baeecd75537db7f13cc 100644 (file)
@@ -1586,7 +1586,7 @@ class Triangulation : public TriaDimensionInfo<dim>,
                                      * default argument in
                                      * @p{set_boundary}.
                                      */
-    static const StraightBoundary<dim>& straight_boundary;
+    static const StraightBoundary<dim> straight_boundary;
 
   public:
     
index a0b5532ed52488e94d0329a792cb6f5cbd915915..de52ea6c380667eb5575ad8b3482c80dd492bdd9 100644 (file)
@@ -29,8 +29,8 @@
 
 
 template <int dim>
-const StraightBoundary<dim> & Triangulation<dim>::straight_boundary
-= StraightBoundary<dim>();
+const StraightBoundary<dim> Triangulation<dim>::straight_boundary;
+
 
 
 template <int dim>

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.