Closed GiulioRomualdi closed 1 year ago
Given that this is a C++ issue, which compiler (and version of it) are you using?
Given that this is a C++ issue, which compiler (and version of it) are you using?
yes sorry. I'm on ubuntu 20.04
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
It is not clear to me why the constructor selected should be the one at line 105 instead of the one at line 137 .
When I ran the following C++ code I'm having trouble constructing an
MatrixView<const T>
fromMatrixView<T>
indeedI got
that is not what I'm expecting since tmp2 should share the same
storage order
astmp1
.I dug into the code and I noticed that this happens because the following constructor is called
https://github.com/robotology/idyntree/blob/a7fdef001d38e47aabcdc541607a255101212dd9/src/core/include/iDynTree/Core/MatrixView.h#L131-L142
while it should call
https://github.com/robotology/idyntree/blob/a7fdef001d38e47aabcdc541607a255101212dd9/src/core/include/iDynTree/Core/MatrixView.h#L105-L112
@traversaro