DescriptionAdd r-value constructor for RefCountedObject.
Previously RefCountedObject was passing all parameters by value.
This meant that it was hard to use it with movable types, such
as unique_ptr<>. Now there is a constructor that takes r-value,
which means that RefCountedObject<std::unique_ptr<foo>> can be
initialized by passing std::unique_ptr<foo> to the constructor.
Committed: https://crrev.com/f2a1c89241ef6e7c3050121ab3f5bcaca65a3375
Cr-Commit-Position: refs/heads/master@{#13079}
Patch Set 1 #
Messages
Total messages: 15 (7 generated)
|