From 03dc3f3b0225e70f33dcef31b70a80242c91848a Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Mon, 1 Oct 2018 15:57:28 +0200
Subject: [PATCH] Regroup constructors

---
 src/utils/Array.hpp | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/utils/Array.hpp b/src/utils/Array.hpp
index e7273ecee..e77e6b6c6 100644
--- a/src/utils/Array.hpp
+++ b/src/utils/Array.hpp
@@ -33,14 +33,6 @@ class Array
     return m_values[i];
   }
 
-  PASTIS_INLINE
-  Array(const size_t& size)
-      : m_values("anonymous", size)
-  {
-    static_assert(not std::is_const<DataType>(),
-                  "Cannot allocate Array of const data: only view is supported");
-  }
-
   template <typename DataType2>
   PASTIS_INLINE
   Array& operator=(const Array<DataType2>& array)
@@ -62,9 +54,20 @@ class Array
   PASTIS_INLINE
   Array& operator=(Array&&) = default;
 
+  PASTIS_INLINE
+  Array(const size_t& size)
+      : m_values("anonymous", size)
+  {
+    static_assert(not std::is_const<DataType>(),
+                  "Cannot allocate Array of const data: only view is supported");
+  }
+
   PASTIS_INLINE
   Array() = default;
 
+  PASTIS_INLINE
+  Array(const Array&) = default;
+
   template <typename DataType2>
   PASTIS_INLINE
   Array(const Array<DataType2>& array)
@@ -75,9 +78,6 @@ class Array
   PASTIS_INLINE
   Array(Array&&) = default;
 
-  PASTIS_INLINE
-  Array(const Array&) = default;
-
   PASTIS_INLINE
   ~Array() = default;
 };
-- 
GitLab