diff --git a/dune/common/tupleutility.hh b/dune/common/tupleutility.hh index c849ba58e7cca2abcabe682e044a414db0a80d97..87cf31edc0bb00f32df5fb7116f4c54f7b3977b0 100644 --- a/dune/common/tupleutility.hh +++ b/dune/common/tupleutility.hh @@ -1298,6 +1298,13 @@ namespace Dune { static Type apply(T& t) { return &t; } }; + // Specialization, in case the type is already a reference + template<class T> + struct AddPtrTypeEvaluator<T&> { + typedef typename remove_reference<T>::type* Type; + static Type apply(T& t) { return &t; } + }; + namespace { template<int i, typename T1,typename F>