From d43c336ce6855c3b6c0a39793cdd2043b940df43 Mon Sep 17 00:00:00 2001
From: jcarpent <jcarpent@laas.fr>
Date: Wed, 16 Nov 2016 18:01:25 +0100
Subject: [PATCH] [C++] Fix bug in call of import_array

---
 src/details.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/details.hpp b/src/details.hpp
index 406b1338..5a69885b 100644
--- a/src/details.hpp
+++ b/src/details.hpp
@@ -207,8 +207,8 @@ namespace eigenpy
   template<typename MatType,typename EigenEquivalentType>
   void enableEigenPySpecific()
   {
-    if(check_registration<MatType>()) return;
     numpy_import_array();
+    if(check_registration<MatType>()) return;
     
     boost::python::to_python_converter<MatType,EigenToPy<MatType,MatType> >();
     EigenFromPy<MatType,MatType>();
-- 
GitLab