Skip to content

use std::make_shared where applicable #2757

@v4hn

Description

@v4hn

MoveIt is sprinkled with ...SharedPtr::reset(new ...) code and SharedPtr(new ...) constructors.
It is slightly (though in most cases not noticeably) faster and cleaner to use std::shared_ptr<...>() instead.

Anyone is welcome to help clean this up and create a pull-request along the lines of #2756 for wider parts of the code base. 💪

Metadata

Metadata

Assignees

Labels

good first issueIf you want to contribute work for the first time, look at thismoveit day candidateThis issue can likely be resolved in less than a daysimple improvementsThis issue can likely be resolved in less than a day

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions