fix move assignment operator of Shape class (#2280)
authorTomasz Jankowski <tomasz1.jankowski@intel.com>
Fri, 18 Sep 2020 08:19:12 +0000 (10:19 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Sep 2020 08:19:12 +0000 (11:19 +0300)
ngraph/core/src/shape.cpp

index 4146f60..d615cbb 100644 (file)
@@ -65,7 +65,7 @@ ngraph::Shape& ngraph::Shape::operator=(const Shape& v)
 
 ngraph::Shape& ngraph::Shape::operator=(Shape&& v) noexcept
 {
-    static_cast<std::vector<size_t>*>(this)->operator=(v);
+    static_cast<std::vector<size_t>*>(this)->operator=(std::move(v));
     return *this;
 }