From abcae5ca95477144f71defeb85344579202d7619 Mon Sep 17 00:00:00 2001
From: Felix Albrecht <mail@felixalbrecht.de>
Date: Fri, 15 Mar 2013 15:12:38 +0100
Subject: [PATCH] [function] added missing static

---
 dune/stuff/function.hh | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/dune/stuff/function.hh b/dune/stuff/function.hh
index a87d5ff9f..159c548b4 100644
--- a/dune/stuff/function.hh
+++ b/dune/stuff/function.hh
@@ -1,16 +1,9 @@
 #ifndef DUNE_STUFF_FUNCTION_HH
 #define DUNE_STUFF_FUNCTION_HH
 
-#ifdef HAVE_CMAKE_CONFIG
-#include "cmake_config.h"
-#elif defined(HAVE_CONFIG_H)
-#include <config.h>
-#endif // ifdef HAVE_CMAKE_CONFIG
-
 #include <string>
 #include <vector>
 
-#include <dune/common/shared_ptr.hh>
 #include <dune/common/parametertree.hh>
 #include <dune/common/exceptions.hh>
 
@@ -82,9 +75,7 @@ public:
 }; // class Functions
 
 
-// ============================================== //
-// ==== begin spezialization for dims 2 -> 1 ==== //
-// ============================================== //
+// spezialization for dims 2 -> 1
 template <class D, class R>
 class Functions<D, 2, R, 1>
 {
@@ -98,7 +89,7 @@ public:
             "function.affineparametric.checkerboard"};
   } // ... available(...)
 
-  Dune::ParameterTree createSampleDescription(const std::string type)
+  static Dune::ParameterTree createSampleDescription(const std::string type)
   {
     if (type == "function.checkerboard")
       return FunctionCheckerboard<D, 2, R, 1>::createSampleDescription();
-- 
GitLab