diff options
author | 2010-11-12 12:06:24 +0000 | |
---|---|---|
committer | 2010-11-12 12:06:24 +0000 | |
commit | cad73d9cdc7120e84f5e3927a2e2dff3879d5b74 (patch) | |
tree | e60887ba103233063b03c02a889f8c3dafb97390 /Eigen/src/Core/util | |
parent | d64e68c8bceff08f4773553d8b6cd920328545cc (diff) |
Correct std::map fix (two commits ago); copy fix to aligned_allocator doc.
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r-- | Eigen/src/Core/util/Memory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 51ec78f1a..e911b3e06 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -509,11 +509,13 @@ inline static Index first_aligned(const Scalar* array, Index size) * Example: * \code * // Matrix4f requires 16 bytes alignment: -* std::map< int, Matrix4f, std::less<int>, aligned_allocator<Matrix4f> > my_map_mat4; +* std::map< int, Matrix4f, std::less<int>, +* aligned_allocator<std::pair<const int, Matrix4f> > > my_map_mat4; * // Vector3f does not require 16 bytes alignment, no need to use Eigen's allocator: * std::map< int, Vector3f > my_map_vec3; * \endcode * +* \sa \ref TopicStlContainers. */ template<class T> class aligned_allocator |