Fix copy constructor (#7102)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 3 Sep 2019 00:38:54 +0000 (09:38 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 3 Sep 2019 00:38:54 +0000 (09:38 +0900)
Fix uninitialized field in copy constructor

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/core/include/graph/operand/PermuteFactor.h

index 8e69892..480e95c 100644 (file)
@@ -61,7 +61,10 @@ public:
   /**
    * @brief Construct PermuteFactor object by copy semantics.
    */
-  PermuteFactor(const PermuteFactor &) = default;
+  PermuteFactor(const PermuteFactor &f) : _backend{f._backend}, _layout{f._layout}
+  {
+    // DO NOTHING
+  }
   /**
    * @brief Construct PermuteFactor object by move semantics.
    */