public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/109941] New: [feat req] Add an option to mark STL types as nodiscard
@ 2023-05-23 12:15 roi.jacobson1 at gmail dot com
  2023-05-23 12:36 ` [Bug libstdc++/109941] " de34 at live dot cn
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: roi.jacobson1 at gmail dot com @ 2023-05-23 12:15 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-23 13:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23 12:15 [Bug libstdc++/109941] New: [feat req] Add an option to mark STL types as nodiscard roi.jacobson1 at gmail dot com
2023-05-23 12:36 ` [Bug libstdc++/109941] " de34 at live dot cn
2023-05-23 12:39 ` roi.jacobson1 at gmail dot com
2023-05-23 13:24 ` redi at gcc dot gnu.org
2023-05-23 13:24 ` redi at gcc dot gnu.org
2023-05-23 13:31 ` roi.jacobson1 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).