Sitelet https://github.com/nodejs/node/issues/47311
Skip to content

std::shared_ptr<T>::unique was removed in C++20 #47311

Description

@targos

Code:

if (!data_.unique()) {

Found in: #45427 (comment)

Refs: https://en.cppreference.com/w/cpp/memory/shared_ptr/unique

@nodejs/cpp-reviewers

Activity

  1. added
    c++Issues and PRs that require attention from people who are familiar with C++.
    on Mar 30, 2023
  2. gengjiawen commented on Mar 30, 2023

    @gengjiawen
  3. RaisinTen commented on Mar 30, 2023

    @RaisinTen
    Member

    I think #47315 might fix this.

  4. gengjiawen commented on Mar 31, 2023

    @gengjiawen
    Member

    I tested #47315 on VS2022, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Issues and PRs that require attention from people who are familiar with C++.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions