fix move assignment operator of Shape class (#2280)

This commit is contained in:
Tomasz Jankowski 2020-09-18 10:19:12 +02:00 committed by GitHub
parent a0da3d360c
commit 8dcff4a741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ ngraph::Shape& ngraph::Shape::operator=(const Shape& v)
ngraph::Shape& ngraph::Shape::operator=(Shape&& v) noexcept 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; return *this;
} }