Skip to content

Conversation

@AlexeySachkov
Copy link
Contributor

This is similar to #20455 - there is a bunch of places where we call std::move(const obj &), but target classes do not provide obj(const &&) move constructors, falling back to regular obj(const &) copy constructor, thus making the std::move useless and confusing.

This should also help clean up the Coverity scan
(https://scan.coverity.com/projects/intel-llvm?tab=overview), see CIDs 535398, 535480, 535420 and 535554. By some reason Coverity thinks that we are using a moved object, whilst in fact no moves were performed, only copies.

This is similar to intel#20455 - there is a bunch of places where
we call `std::move(const obj &)`, but target classes do not provide
`obj(const &&)` move constructors, falling back to regular `obj(const &)` copy
constructor, thus making the `std::move` useless and confusing.

This should also help clean up the Coverity scan
(https://scan.coverity.com/projects/intel-llvm?tab=overview), see CIDs
`535398`, `535480`, `535420` and `535554`. By some reason Coverity
thinks that we are using a moved object, whilst in fact no moves were
performed, only copies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants