From 59bd03457a1b72bc207c1368982c8b828e23e95e 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 0e216c40f..f0b13cd75 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -709,15 +709,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();