aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/StlSupport/StdList.h
diff options
context:
space:
mode:
authorGravatar Kenneth Riddile <kfriddile@gmail.com>2010-07-26 19:06:47 -0400
committerGravatar Kenneth Riddile <kfriddile@gmail.com>2010-07-26 19:06:47 -0400
commitb038a4bb71514d90fed7d71ec40210bbf775b5ec (patch)
tree0f8fcd15006436d9d173961defd6dc6ac4656a53 /Eigen/src/StlSupport/StdList.h
parent1420f8b3a16e025ca54402a2feb17f8ed4b41694 (diff)
* added EIGEN_ALIGNED_ALLOCATOR macro to allow specifying a different aligned allocator
* attempted to add support for std::deque by copying and modifying the std::vector implementation...MSVC still fails to compile with the std::deque::resize() "will not be aligned" error...probably missing something simple but I'm not sure how to make it work
Diffstat (limited to 'Eigen/src/StlSupport/StdList.h')
-rw-r--r--Eigen/src/StlSupport/StdList.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/StlSupport/StdList.h b/Eigen/src/StlSupport/StdList.h
index 55b90066e..d329a0b2d 100644
--- a/Eigen/src/StlSupport/StdList.h
+++ b/Eigen/src/StlSupport/StdList.h
@@ -29,7 +29,7 @@
// Define the explicit instantiation (e.g. necessary for the Intel compiler)
#if defined(__INTEL_COMPILER) || defined(__GNUC__)
- #define EIGEN_EXPLICIT_STL_LIST_INSTANTIATION(...) template class std::list<__VA_ARGS__, Eigen::aligned_allocator<__VA_ARGS__> >;
+ #define EIGEN_EXPLICIT_STL_LIST_INSTANTIATION(...) template class std::list<__VA_ARGS__, EIGEN_ALIGNED_ALLOCATOR<__VA_ARGS__> >;
#else
#define EIGEN_EXPLICIT_STL_LIST_INSTANTIATION(...)
#endif
@@ -45,9 +45,9 @@ namespace std \
{ \
template<typename _Ay> \
class list<__VA_ARGS__, _Ay> \
- : public list<__VA_ARGS__, Eigen::aligned_allocator<__VA_ARGS__> > \
+ : public list<__VA_ARGS__, EIGEN_ALIGNED_ALLOCATOR<__VA_ARGS__> > \
{ \
- typedef list<__VA_ARGS__, Eigen::aligned_allocator<__VA_ARGS__> > list_base; \
+ typedef list<__VA_ARGS__, EIGEN_ALIGNED_ALLOCATOR<__VA_ARGS__> > list_base; \
public: \
typedef __VA_ARGS__ value_type; \
typedef typename list_base::allocator_type allocator_type; \
@@ -92,7 +92,7 @@ namespace std
}
template<typename T>
- class list<T,Eigen::aligned_allocator<T> >
+ class list<T,EIGEN_ALIGNED_ALLOCATOR<T> >
: public list<EIGEN_WORKAROUND_MSVC_STL_SUPPORT(T),
Eigen::aligned_allocator_indirection<EIGEN_WORKAROUND_MSVC_STL_SUPPORT(T)> >
{