Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17803

[C++] Use [[nodiscard]]

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 10.0.0
    • C++

    Description

      We currently have a ARROW_MUST_USE_TYPE macro that's only enabled on clang-based builds.
      Instead we can use the [[nodiscard]] that's standard in C++17.

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m