Skip to content

Commit

Permalink
[SofaPython] compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Tournier committed Sep 20, 2017
1 parent d61cb9b commit 14f8713
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions applications/plugins/SofaPython/ctypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ static void eigen_from_scipy_impl(eigen_csr_matrix<U>* lvalue,
eigen_csr_matrix<U> matrix;
char bytes[0]; // ye olde c trick ahoy
storage_type() { }
~storage_type() { }
} storage;

const eigen_csr_matrix<U>* alias = new (storage.bytes) eigen_csr_matrix<U>(rvalue);
Expand Down

0 comments on commit 14f8713

Please sign in to comment.