rocr: Fixed inefficient copy operations
Changed variable assignments to use std::move() where appropriate Signed-off-by: Alysa Liu <Alysa.Liu@amd.com>
This commit is contained in:
@@ -76,7 +76,7 @@ template <typename T> class lazy_ptr {
|
||||
|
||||
void reset(std::function<T*()> Constructor = nullptr) {
|
||||
obj.reset();
|
||||
func = Constructor;
|
||||
func = std::move(Constructor);
|
||||
}
|
||||
|
||||
void reset(T* ptr) {
|
||||
|
||||
Reference in New Issue
Block a user