Skip to content

[C++] Drop support for C++/CLI #45810

Open

Description

@kou

Describe the enhancement requested

We're caring about C++/CLI by not using nullptr/<mutex> in public header. (But we don't have CI for C++/CLI.)

But it seems that there is no Arrow + C++/CLI user ( #45674 (comment) ) now. We have the C# implementation now. So we can drop support for C++/CLI.

Component(s)

C++

Activity

  1. pitrou commented on Sep 23, 2025

    @pitrou
    Member

    @raulcd @kou Should we just do this?

  2. kou commented on Sep 24, 2025

    @kou
    MemberAuthor

    Yes.

    We need to remove

    // ----------------------------------------------------------------------
    // C++/CLI support macros (see ARROW-1134)
    #ifndef NULLPTR
    # ifdef __cplusplus_cli
    # define NULLPTR __nullptr
    # else
    # define NULLPTR nullptr
    # endif
    #endif // ifndef NULLPTR
    , https://github.com/apache/arrow/blob/main/cpp/src/arrow/util/mutex.h and https://github.com/apache/arrow/blob/main/cpp/src/arrow/util/mutex.cc .

  3. raulcd commented on Sep 25, 2025

    @raulcd
    Member

    There's a repeated link, I think you wanted to point to the mutex header file, maybe the comment specifically:

    /// A wrapper around std::mutex since we can't use it directly in
    /// public headers due to C++/CLI.
    /// https://docs.microsoft.com/en-us/cpp/standard-library/mutex#remarks
    class ARROW_EXPORT Mutex {

  4. kou commented on Sep 26, 2025

    @kou
    MemberAuthor

    Oh, sorry... I've fixed the .h link...

    We can remove mutex.h entirely.

  5. github-actions commented on Sep 26, 2026

    @github-actions

    This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

  6. added
    Status: stale-warning
    on Sep 26, 2026
  7. removed
    Status: stale-warning
    on Sep 26, 2026
  8. added
    Status: needs champion
    on Sep 28, 2026
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

    Component: C++Status: needs championType: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions