]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move functions local to these files into an anonymous namespace
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 19 Oct 2006 00:37:54 +0000 (00:37 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 19 Oct 2006 00:37:54 +0000 (00:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@14022 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/quadrature.cc
deal.II/base/source/quadrature_lib.cc

index dbc6011ccb071f5d59296d9c827076a25d190fad..499f67cac923d5a471772f046ed5c02e7da5ad80 100644 (file)
 #include <iterator>
 
 
-// Integer to the power of dim
-template <int dim>
-inline unsigned int dimpow (unsigned int n)
+namespace
 {
-  unsigned int result = n;
-  for (unsigned int i=1;i<dim;++i)
-    result *= n;
-  return result;
+/**
+ * Integer to the power of dim
+ */
+  template <int dim>
+  inline unsigned int dimpow (unsigned int n)
+  {
+    unsigned int result = n;
+    for (unsigned int i=1;i<dim;++i)
+      result *= n;
+    return result;
+  }
 }
 
 
+
 template <>
 Quadrature<0>::Quadrature (const unsigned int)
               : n_quadrature_points(0)
index 919af8037c44228dafd908957a39c9667b3bffb5..0eaff84c089535aa77cbde9aafa7ae268e181d25 100644 (file)
 // for all lower dimensions as well. That is why in this file the check
 // is for deal_II_dimension >= any_number and not for ==
 
-
-template <typename number>
-number abs (const number a)
+namespace
 {
-  return ((a>0) ? a : -a);
+  template <typename number>
+  number abs (const number a)
+  {
+    return ((a>0) ? a : -a);
+  }
 }
 
 

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.