From 24dfc2cbaf8f61022e56a01a7ed935b9eb97738a Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Mon, 13 Jun 2016 20:03:39 +0200
Subject: [PATCH] Add some noalias

---
 include/hpp/fcl/math/transform.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/hpp/fcl/math/transform.h b/include/hpp/fcl/math/transform.h
index d69941d9..a11dc55c 100644
--- a/include/hpp/fcl/math/transform.h
+++ b/include/hpp/fcl/math/transform.h
@@ -442,10 +442,10 @@ public:
   /// @brief set transform from rotation and translation
   inline void setTransform(const Matrix3f& R_, const Vec3f& T_)
   {
-    R = R_;
-    T = T_;
-    matrix_set = true;
+    R.noalias() = R_;
+    T.noalias() = T_;
     q.fromRotation(R_);
+    matrix_set = true;
   }
 
   /// @brief set transform from rotation and translation
@@ -453,7 +453,7 @@ public:
   {
     matrix_set = false;
     q = q_;
-    T = T_;
+    T.noalias() = T_;
   }
 
   /// @brief set transform from rotation
-- 
GitLab