From e60b26a09175de74f3d6fe613a405d96c92d2f30 Mon Sep 17 00:00:00 2001 From: Felipe Sateler Date: Fri, 6 Jun 2014 13:15:18 -0400 Subject: [PATCH] Fix implementation of aligned_allocator::construct. Fixes a build failure with gcc >= 4.9, because it defines __cplusplus >= 201103L. A typo, apparently. This patch can be dropped in the next upstream release. Gbp-Pq: Name ftbfs-gcc-4.9.patch --- server/supernova/utilities/malloc_aligned.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/supernova/utilities/malloc_aligned.hpp b/server/supernova/utilities/malloc_aligned.hpp index e572dcb..89277ff 100644 --- a/server/supernova/utilities/malloc_aligned.hpp +++ b/server/supernova/utilities/malloc_aligned.hpp @@ -243,7 +243,7 @@ public: template< class U, class... Args > void construct(U * p, Args&& ... args) { - ::new(p) T(std::forward(args)...); + ::new(p) U(std::forward(args)...); } #endif -- 2.30.2