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

Applied Steffen's patch from FS #1287 and reverted changes of r7454 to m4/cxx0x_variadic.m4

[[Imported from SVN: r7472]]
parent 73555c98
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,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>
......
......@@ -18,9 +18,9 @@ AC_DEFUN([VARIADIC_TEMPLATES_CHECK],[
}
template<typename T1, typename... T>
int add_ints(T1 t1, T&&... t)
int add_ints(T1 t1, T... t)
{
return t1 + add_ints(std::forward<T>(t)...);
return t1 + add_ints(t...);
}],
[
assert( 5 == add_ints(9,3,-5,-2) );
......
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