From b5b3a0a38f1ae4f6222d3f3f1d90f7fa3314ffb7 Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Mon, 24 Dec 2012 13:40:14 +0000 Subject: [PATCH] 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]] --- dune/common/debugallocator.hh | 2 +- dune/common/mallocallocator.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/common/debugallocator.hh b/dune/common/debugallocator.hh index 56298376f..62c09a68f 100644 --- a/dune/common/debugallocator.hh +++ b/dune/common/debugallocator.hh @@ -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) diff --git a/dune/common/mallocallocator.hh b/dune/common/mallocallocator.hh index 58c454d15..d04045521 100644 --- a/dune/common/mallocallocator.hh +++ b/dune/common/mallocallocator.hh @@ -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) -- GitLab