Skip to content

feat: mark digest as nodiscard - #18

Merged
LimiNode merged 1 commit into
mainfrom
codex/add-nodiscard]]-to-digest-declaration
Sep 4, 2025
Merged

feat: mark digest as nodiscard#18
LimiNode merged 1 commit into
mainfrom
codex/add-nodiscard]]-to-digest-declaration

Conversation

@LimiNode

@LimiNode LimiNode commented Sep 4, 2025

Copy link
Copy Markdown
Owner

Summary

  • add SIPHASH_NODISCARD macro mapping to [[nodiscard]]
  • mark digest() result as non-discardable while keeping C++11 compatibility

Testing

  • ./scripts/run_tests.sh
  • CXX_STANDARD=11 ./scripts/run_tests.sh

https://chatgpt.com/codex/tasks/task_e_68b9794421ec832c9691d420351f651d

Introduce SIPHASH_NODISCARD macro that maps to [[nodiscard]] when C++17 features are available, and apply it to digest() while remaining compatible with C++11.
@LimiNode
LimiNode merged commit dd9dfc9 into main Sep 4, 2025
4 checks passed
@LimiNode
LimiNode deleted the codex/add-nodiscard]]-to-digest-declaration branch September 4, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant