https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109941

            Bug ID: 109941
           Summary: [feat req] Add an option to mark STL types as
                    nodiscard
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roi.jacobson1 at gmail dot com
  Target Milestone: ---

I would find it useful if there was a macro or some other option to mark types
like std::error_code, std::errc, and std::expected as [[nodiscard]] so
developers will be forced to handle the errors.

Reply via email to