Skip to content
Snippets Groups Projects
Commit f4fbfc51 authored by Christian Engwer's avatar Christian Engwer
Browse files

add specialization to AddPtrTypeEvaluator for types which are

references.

This fixes some problems on MacOSX g++ 4.2.1

[[Imported from SVN: r6148]]
parent eef72df7
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment