Skip to content

Use std::shared_ptr instead of boost::shared_ptr ASAP for 1.11.0 #3735

@kunaltyagi

Description

@kunaltyagi

Context

Migration from Boost to std c++ functionality

If the switch is delayed, it might become difficult to find any potential issue that might arise due to the switch., reducing confidence in the stability of the release.

Expected Behavior

static_assert(std::is_same_v<pcl::shared_ptr<int>, std::shared_ptr<int>>);

Current Behavior

static_assert(!std::is_same_v<pcl::shared_ptr<int>, std::shared_ptr<int>>);
static_assert(std::is_same_v<pcl::shared_ptr<int>, boost::shared_ptr<int>>);

Possible Solution

Start with

template <class T>
- using shared_ptr = boost::shared_ptr<T>;
+ using shared_ptr = std::shared_ptr<T>;

and resolve compilation errors.

EDIT:
Needs #3754

Metadata

Metadata

Assignees

No one assigned

    Labels

    changelog: ABI breakMeta-information for changelog generationeffort: mediumRough estimate of time needed to fix/implement/solvekind: todoType of issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions