]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix more missing std::
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 12 Mar 2001 15:49:31 +0000 (15:49 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 12 Mar 2001 15:49:31 +0000 (15:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@4190 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/function_derivative.h
deal.II/base/source/function_derivative.cc

index 714a65af859eafed0b1823867745a02d2921b8d0..08be9f8bc332024e1e609c0a8d1b8f37be20fc3c 100644 (file)
@@ -79,9 +79,9 @@ class FunctionDerivative : public Function<dim>
                                      * must still be the same, when
                                      * values are accessed.
                                      */
-    FunctionDerivative (const Function<dim>f,
-                       const vector<Point<dim> >& direction,
-                       const double h = 1.e-6);
+    FunctionDerivative (const Function<dim>            &f,
+                       const std::vector<Point<dim> > &direction,
+                       const double                    h = 1.e-6);
     
                                     /**
                                      * Choose the difference formula.
@@ -148,7 +148,7 @@ class FunctionDerivative : public Function<dim>
                                      * increment vector for the
                                      * formula.
                                      */
-    vector<Point<dim> > incr;
+    typename std::vector<Point<dim> > incr;
 };
 
 #endif
index ada97de27594326963df46b39cdf4b1cb1eed71f..372ad798ad86e42f91659ba026fa692f4b1783f9 100644 (file)
 #include <cmath>
 
 template <int dim>
-FunctionDerivative<dim>::FunctionDerivative (const Function<dim>f,
-                                            const Point<dim>dir,
-                                            const double h)
+FunctionDerivative<dim>::FunctionDerivative (const Function<dim> &f,
+                                            const Point<dim>    &dir,
+                                            const double         h)
                :
                Function<dim> (f.n_components, f.get_time()),
-  f(f),
-  h(h),
-  incr(1, h*dir)
+                f(f),
+                h(h),
+                incr(1, h*dir)
 {
   set_formula();
 }
@@ -34,7 +34,7 @@ FunctionDerivative<dim>::FunctionDerivative (const Function<dim>& f,
 
 template <int dim>
 FunctionDerivative<dim>::FunctionDerivative (const Function<dim>& f,
-                                            const vector<Point<dim> >& dir,
+                                            const std::vector<Point<dim> >& dir,
                                             const double h)
                :
                Function<dim> (f.n_components, f.get_time()),

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.