Skip to content
Snippets Groups Projects
Commit f8c0367d authored by Markus Blatt's avatar Markus Blatt
Browse files

[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.
parent 7187bf74
Branches
Tags
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment