From f8c0367d0c909b2a47471ce845b463c2c271069e Mon Sep 17 00:00:00 2001
From: Markus Blatt <markus@dr-blatt.de>
Date: Sat, 11 May 2013 20:59:48 +0200
Subject: [PATCH] [BugFix] Fixes mallocallocator for compilers without C++11
 support.

This is the same fix as for debugallocator. See flyspray #1287.
The problem was that move semantics were used if the compiler supports
variadic templates.
---
 dune/common/mallocallocator.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/common/mallocallocator.hh b/dune/common/mallocallocator.hh
index 89083955a..daca655b8 100644
--- a/dune/common/mallocallocator.hh
+++ b/dune/common/mallocallocator.hh
@@ -79,7 +79,7 @@ namespace Dune
     {
       ::new((void*)p)T(val);
     }
-#if HAVE_VARIADIC_TEMPLATES || DOXYGEN
+#if ( HAVE_VARIADIC_TEMPLATES && HAVE_RVALUE_REFERENCES ) || DOXYGEN
     //! construct an object of type T from variadic parameters
     //! \note works only with newer C++ compilers
     template<typename ... _Args>
-- 
GitLab