]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Add patch for eigen 3.2.7
authorGilles DAVID <gilles-g.david@edf.fr>
Thu, 15 Jun 2017 16:39:31 +0000 (18:39 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Thu, 15 Jun 2017 16:39:31 +0000 (18:39 +0200)
config/patches/eigen.001_replace_nullptr.patch [new file with mode: 0644]
config/salome.xml

diff --git a/config/patches/eigen.001_replace_nullptr.patch b/config/patches/eigen.001_replace_nullptr.patch
new file mode 100644 (file)
index 0000000..77d31cf
--- /dev/null
@@ -0,0 +1,37 @@
+commit 43401eee36e1af2ca170b2824e76875f2ac56964
+Author: spo <sergey.pokhodenko@opencascade.com>
+Date:   Tue Dec 22 12:46:02 2015 +0300
+
+    Replace nullptr with 0
+
+diff --git a/Eigen/src/Core/DenseStorage.h b/Eigen/src/Core/DenseStorage.h
+index 568493c..c30c084 100755
+--- a/Eigen/src/Core/DenseStorage.h
++++ b/Eigen/src/Core/DenseStorage.h
+@@ -278,7 +278,7 @@ template<typename T, int _Options> class DenseStorage<T, Dynamic, Dynamic, Dynam
+       , m_rows(std::move(other.m_rows))
+       , m_cols(std::move(other.m_cols))
+     {
+-      other.m_data = nullptr;
++      other.m_data = 0;
+     }
+     DenseStorage& operator=(DenseStorage&& other)
+     {
+@@ -336,7 +336,7 @@ template<typename T, int _Rows, int _Options> class DenseStorage<T, Dynamic, _Ro
+       : m_data(std::move(other.m_data))
+       , m_cols(std::move(other.m_cols))
+     {
+-      other.m_data = nullptr;
++      other.m_data = 0;
+     }
+     DenseStorage& operator=(DenseStorage&& other)
+     {
+@@ -390,7 +390,7 @@ template<typename T, int _Cols, int _Options> class DenseStorage<T, Dynamic, Dyn
+       : m_data(std::move(other.m_data))
+       , m_rows(std::move(other.m_rows))
+     {
+-      other.m_data = nullptr;
++      other.m_data = 0;
+     }
+     DenseStorage& operator=(DenseStorage&& other)
+     {
index 568bace12ac4799b1145e5ea087b1232cdf93819..289255a9f0a72b6caf13d3bd2d0a2568aa92c39c 100644 (file)
   <product name="tclx" version="8.4.1" />
   <product name="tbb" version="4.2.4" />
   <product name="eigen" version="3.2.7" />
+    <patches>
+      <patch comment="Replace nullptr with 0" name="eigen.001_replace_nullptr.patch" />
+    </patches>
   <product name="planegcs" version="0.16" />
   <product comment="SALOME Geometry module" name="geom" version="V8_3_0" />
   <product comment="SALOME GUI module" name="gui" version="V8_3_0" />