Fix implementation of aligned_allocator::construct<U>.
authorFelipe Sateler <fsateler@debian.org>
Fri, 6 Jun 2014 17:15:18 +0000 (13:15 -0400)
committerFelipe Sateler <fsateler@debian.org>
Sat, 4 Oct 2014 16:19:47 +0000 (17:19 +0100)
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

index e572dcb6724ebd3b018c931a1267e3b7e7ffacba..89277ffcfd275ed0c8c3fab7a30d7fd280ae8fe6 100644 (file)
@@ -243,7 +243,7 @@ public:
     template< class U, class... Args >
     void construct(U * p, Args&& ... args)
     {
-        ::new(p) T(std::forward<Args>(args)...);
+        ::new(p) U(std::forward<Args>(args)...);
     }
 #endif