backport the new StdVector as NewStdVector

make StdVector be a wrapper around it if EIGEN_USE_NEW_STDVECTOR is defined
otherwise StdVector doesn't change ---> compatibility is preserved
backport unit-test
This commit is contained in:
Benoit Jacob
2009-08-29 12:13:52 -04:00
parent 35e88996c7
commit 82df5b4a24
4 changed files with 339 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
#ifdef EIGEN_USE_NEW_STDVECTOR
#include "NewStdVector"
#else
#ifndef EIGEN_STDVECTOR_MODULE_H
#define EIGEN_STDVECTOR_MODULE_H
@@ -139,3 +143,5 @@ class vector<T,DummyAlloc,true>
}
#endif // EIGEN_STDVECTOR_MODULE_H
#endif // EIGEN_USE_NEW_STDVECTOR