Skip to content

use_cpp11() should not add SystemRequirements: C++11 #1824

Closed

Description

@DavisVaughan

Since CRAN no longer wants this and we have begun removing it as we update packages.

I am 90% certain this is correct, but am still waiting on confirmation of the fact that packages using cpp11 don't need this anymore.

Activity

  1. added
    wip
    on Apr 21, 2023
  2. added this to the v2.2.0 milestone on Apr 21, 2023
  3. jennybc commented on Apr 25, 2023

    @jennybc
    Member

    I haven't gotten an official answer on this, but I'm fairly convinced I've made the right move.

  4. stephematician commented on May 18, 2023

    @stephematician

    That seems like the right move. Looking at the current advice on Writing R Extensions (Using C++ Code), would it be possible to state the standard in src/Makevars[.win/.ucrt]?

    They state that setting CXX_STD=CXX14 is preferred (to ensure longer term portability) and is potentially supported as far back as R 3.4.0.

  5. DavisVaughan commented on May 18, 2023

    @DavisVaughan
    MemberAuthor

    I don't think that is really preferred in the longterm because that locks you in to C++14 even if the code works on C++17 and above. I had CXX_STD=CXX11 in one of my packages and was forced to remove that too. So putting CXX14 in there is just asking for the same problem to happen a few years from now, unless you really require just C++14 and nothing else

  6. stephematician commented on May 18, 2023

    @stephematician

    True. And I'm not 100% on board with the Writing R Extensions advice, due to the same reasoning. (edit) And it turns out, neither is CRAN - setting CXX_STD gets reported as a NOTE (/edit)

  7. added a commit that references this issue on Apr 11, 2024
    4a83ded
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

    wip

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions