You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Types like ListType and factory functions like list take a const std::shared_ptr<DataType>& instead of a std::shared_ptr<DataType> that could be moved into the newly constructed ListType without the need of bumping a refcount and still support cases where caller can only give it a reference.
When working on this, we should take the time to go through every callsite and decide if a std::move() is possible without breaking correctness — things could break if the parameter is used after it's moved into the new instance of a parametric type.
Component(s)
C++
The text was updated successfully, but these errors were encountered:
Describe the enhancement requested
Types like
ListType
and factory functions likelist
take aconst std::shared_ptr<DataType>&
instead of astd::shared_ptr<DataType>
that could be moved into the newly constructedListType
without the need of bumping a refcount and still support cases where caller can only give it a reference.Currently:
After this issue is fixed:
When working on this, we should take the time to go through every callsite and decide if a
std::move()
is possible without breaking correctness — things could break if the parameter is used after it's moved into the new instance of a parametric type.Component(s)
C++
The text was updated successfully, but these errors were encountered: