From a1f056cf2a0318d7a8d4a4bf4c5019c09a8fdbd6 Mon Sep 17 00:00:00 2001 From: Martinho Fernandes Date: Tue, 10 Sep 2013 17:08:04 +0200 Subject: [PATCH] Fix bug #503 C++11 support on simple allocators comes for free. `aligned_allocator` does not need to add any `construct` overloads to work with C++11 compilers. --- Eigen/src/Core/util/Memory.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 3a357e079..fab90f0da 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -758,15 +758,6 @@ public: ::new( p ) T( value ); } - // Support for c++11 -#if (__cplusplus >= 201103L) - template - void construct(pointer p, Args&&... args) - { - ::new(p) T(std::forward(args)...); - } -#endif - void destroy( pointer p ) { p->~T();