Skip to content

Add [[nodiscard]] to enqueue and dequeue - #13

Merged
sbooth merged 1 commit into
mainfrom
nodiscard
Jul 10, 2026
Merged

Add [[nodiscard]] to enqueue and dequeue#13
sbooth merged 1 commit into
mainfrom
nodiscard

Conversation

@sbooth

@sbooth sbooth commented Jul 10, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 10, 2026 14:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens API usage of mpsc::MessageQueue by marking the enqueue/dequeue operations as [[nodiscard]], aligning them with other already-[[nodiscard]] query/utility methods in the same header to discourage silently ignoring success/failure.

Changes:

  • Add [[nodiscard]] to the raw-bytes overloads of enqueue and dequeue.
  • Add [[nodiscard]] to the value-pack overloads of enqueue and dequeue.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sources/CXXMessageQueue/include/mpsc/MessageQueue.hpp
Comment thread Sources/CXXMessageQueue/include/mpsc/MessageQueue.hpp
@sbooth
sbooth merged commit 4877c1c into main Jul 10, 2026
8 checks passed
@sbooth
sbooth deleted the nodiscard branch July 10, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants