Skip to content

Provide pcl::weak_ptr to complement pcl::shared_ptr #3754

@kunaltyagi

Description

@kunaltyagi

Context

Switch of PCL from boost to std smart pointers will be smoother

Expected behavior

In C++17,

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

Current Behavior

Compiler error on using pcl::weak_ptr<T>

Describe the solution you'd like

Addition in pcl_macros.h or make_shared.h

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: lowRough estimate of time needed to fix/implement/solvekind: todoType of issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions