From f52d119b9c4f9b6dfbb91183de08143fdf3cc94c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 3 Sep 2008 00:32:56 +0000 Subject: Solve a big issue with data alignment and dynamic allocation: * add a WithAlignedOperatorNew class with overloaded operator new * make Matrix (and Quaternion, Transform, Hyperplane, etc.) use it if needed such that "*(new Vector4) = xpr" does not failed anymore. * Please: make sure your classes having fixed size Eigen's vector or matrice attributes inherit WithAlignedOperatorNew * add a ei_new_allocator STL memory allocator to use with STL containers. This allocator really calls operator new on your types (unlike GCC's new_allocator). Example: std::vector data(10); will segfault if the vectorization is enabled, instead use: std::vector > data(10); NOTE: you only have to worry if you deal with fixed-size matrix types with "sizeof(matrix_type)%16==0"... --- demos/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'demos') diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt index b1e206096..64298baf4 100644 --- a/demos/CMakeLists.txt +++ b/demos/CMakeLists.txt @@ -1,3 +1,4 @@ IF(BUILD_DEMOS) ADD_SUBDIRECTORY(mandelbrot) +ADD_SUBDIRECTORY(opengl) ENDIF(BUILD_DEMOS) -- cgit v1.2.3