From 14f871309f0f0b3bdcca9bee2c1b830ed56eea52 Mon Sep 17 00:00:00 2001 From: Maxime Tournier Date: Wed, 20 Sep 2017 11:49:28 +0200 Subject: [PATCH] [SofaPython] compilation fix --- applications/plugins/SofaPython/ctypes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/plugins/SofaPython/ctypes.cpp b/applications/plugins/SofaPython/ctypes.cpp index a125f3b3232..31092e3be94 100644 --- a/applications/plugins/SofaPython/ctypes.cpp +++ b/applications/plugins/SofaPython/ctypes.cpp @@ -106,6 +106,7 @@ static void eigen_from_scipy_impl(eigen_csr_matrix* lvalue, eigen_csr_matrix matrix; char bytes[0]; // ye olde c trick ahoy storage_type() { } + ~storage_type() { } } storage; const eigen_csr_matrix* alias = new (storage.bytes) eigen_csr_matrix(rvalue);