From 65a04ee164a6df544e9f582eadf30c587bbfde2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org>
Date: Mon, 12 Oct 2009 14:55:17 +0000
Subject: [PATCH] Export raw argument and result type.

[[Imported from SVN: r5632]]
---
 common/function.hh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/function.hh b/common/function.hh
index 7514a3807..1dfcbf99e 100644
--- a/common/function.hh
+++ b/common/function.hh
@@ -4,6 +4,8 @@
 #define DUNE_FUNCTION_HH
 
 
+#include "typetraits.hh"
+
 namespace Dune {
 
   /** @addtogroup Common
@@ -26,6 +28,12 @@ namespace Dune {
   {
   public:
 
+    //! Raw type of input variable with removed reference and constness
+    typedef typename ConstantVolatileTraits<typename TypeTraits< Domain >::ReferredType >::UnqualifiedType DomainType;
+
+    //! Raw type of output variable with removed reference and constness
+    typedef typename ConstantVolatileTraits<typename TypeTraits< Range >::ReferredType >::UnqualifiedType RangeType;
+
     /**
      * \brief Function evaluation.
      *
-- 
GitLab