From d646cc95ad9681dbd3ac1d26b11938af64028a9f 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. (grafted from a1f056cf2a0318d7a8d4a4bf4c5019c09a8fdbd6 ) --- 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 451535a0c..ec81a6bbc 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -729,15 +729,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();