[layers] Move constructors must be noexcept
authorParichay Kapoor <pk.kapoor@samsung.com>
Mon, 21 Sep 2020 07:42:27 +0000 (16:42 +0900)
committerjijoong.moon <jijoong.moon@samsung.com>
Wed, 23 Sep 2020 08:22:34 +0000 (17:22 +0900)
Make all move constructors to be noexcept

**Self evaluation:**
1. Build test: [x]Passed [ ]Failed [ ]Skipped
2. Run test: [x]Passed [ ]Failed [ ]Skipped

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/include/addition_layer.h
nntrainer/include/bn_layer.h
nntrainer/include/conv2d_layer.h
nntrainer/include/fc_layer.h
nntrainer/include/flatten_layer.h
nntrainer/include/input_layer.h
nntrainer/include/optimizer.h
nntrainer/include/pooling2d_layer.h

index 1c54c67..e871485 100644 (file)
@@ -46,7 +46,7 @@ public:
    *  @brief  Move constructor of AdditionLayer.
    *  @param[in] AdditionLayer &&
    */
-  AdditionLayer(AdditionLayer &&rhs) = default;
+  AdditionLayer(AdditionLayer &&rhs) noexcept = default;
 
   /**
    * @brief  Move assignment operator.
index 3690481..8bf0703 100644 (file)
@@ -63,7 +63,7 @@ public:
    *  @brief  Move constructor of Pooling 2D Layer.
    *  @param[in] BatchNormalization &&
    */
-  BatchNormalizationLayer(BatchNormalizationLayer &&rhs) = default;
+  BatchNormalizationLayer(BatchNormalizationLayer &&rhs) noexcept = default;
 
   /**
    * @brief  Move assignment operator.
index 148e67d..5a56902 100644 (file)
@@ -54,7 +54,7 @@ public:
    *  @brief  Move constructor of Conv 2D Layer.
    *  @param[in] Conv2dLayer &&
    */
-  Conv2DLayer(Conv2DLayer &&rhs) = default;
+  Conv2DLayer(Conv2DLayer &&rhs) noexcept = default;
 
   /**
    * @brief  Move assignment operator.
index 6a99e19..2202109 100644 (file)
@@ -44,7 +44,7 @@ public:
    *  @brief  Move constructor of Pooling 2D Layer.
    *  @param[in] FullyConnected &&
    */
-  FullyConnectedLayer(FullyConnectedLayer &&rhs) = default;
+  FullyConnectedLayer(FullyConnectedLayer &&rhs) noexcept = default;
 
   /**
    * @brief  Move assignment operator.
index 9607a85..4af1db6 100644 (file)
@@ -43,7 +43,7 @@ public:
    *  @brief  Move constructor of FlattenLayer.
    *  @param[in] FlattenLayer &&
    */
-  FlattenLayer(FlattenLayer &&rhs) = default;
+  FlattenLayer(FlattenLayer &&rhs) noexcept = default;
 
   /**
    * @brief  Move assignment operator.
index 41b180f..fa61375 100644 (file)
@@ -55,7 +55,7 @@ public:
    *  @brief  Move constructor of Pooling 2D Layer.
    *  @param[in] Input &&
    */
-  InputLayer(InputLayer &&rhs) = default;
+  InputLayer(InputLayer &&rhs) noexcept = default;
 
   /**
    * @brief  Move assignment operator.
index bf9047c..1d50379 100644 (file)
@@ -123,7 +123,7 @@ public:
    *  @brief  Move constructor of Conv 2D Layer.
    *  @param[in] Conv2dLayer &&
    */
-  Optimizer(Optimizer &&rhs) = default;
+  Optimizer(Optimizer &&rhs) noexcept = default;
 
   /**
    * @brief  Move assignment operator.
index 2f51e24..56ca690 100644 (file)
@@ -59,7 +59,7 @@ public:
    *  @brief  Move constructor of Pooling 2D Layer.
    *  @param[in] Pooling2D &&
    */
-  Pooling2DLayer(Pooling2DLayer &&rhs) = default;
+  Pooling2DLayer(Pooling2DLayer &&rhs) noexcept = default;
 
   /**
    * @brief  Move assignment operator.