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

Make the allocator compile even if variadic templates are activated.

BTW: Currently they are not at all activated in dune-common.

[[Imported from SVN: r7069]]
parent e4522fc1
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@ namespace Dune
template<typename ... _Args>
void construct(pointer p, _Args&&... __args)
{
::new((void *)p)_Tp(std::forward<_Args>(__args) ...);
::new((void *)p)T(std::forward<_Args>(__args) ...);
}
#endif
//! destroy an object of type T (i.e. call the Destructor)
......
......@@ -80,7 +80,7 @@ namespace Dune
template<typename ... _Args>
void construct(pointer p, _Args&&... __args)
{
::new((void *)p)_Tp(std::forward<_Args>(__args) ...);
::new((void *)p)T(std::forward<_Args>(__args) ...);
}
#endif
//! destroy an object of type T (i.e. call the Destructor)
......
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