From 079aabf929c14af78041d8c36d3fe6c09c456c83 Mon Sep 17 00:00:00 2001
From: jcarpent <jcarpent@laas.fr>
Date: Sun, 27 Dec 2015 11:19:38 +0100
Subject: [PATCH] [C++][Fix bug] Use the right constructor for fixed-row and
 fixed-col matrix

---
 src/details.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/details.hpp b/src/details.hpp
index ce9ba1bc..467ce71d 100644
--- a/src/details.hpp
+++ b/src/details.hpp
@@ -108,7 +108,7 @@ namespace eigenpy
   {
     static MatType & construct(void*storage,int /*r*/,int c)
     {
-      return * new(storage) MatType(c);
+      return * new(storage) MatType(R,c);
     }
   };
 
@@ -117,7 +117,7 @@ namespace eigenpy
   {
     static MatType & construct(void*storage,int r,int /*c*/)
     {
-      return * new(storage) MatType(r);
+      return * new(storage) MatType(r,C);
     }
   };
 
-- 
GitLab