Skip to content

Include algorithm header for std::fill usage - #14

Merged
LimiNode merged 1 commit into
mainfrom
codex/add-include-algorithm-to-files
Sep 3, 2025
Merged

Include algorithm header for std::fill usage#14
LimiNode merged 1 commit into
mainfrom
codex/add-include-algorithm-to-files

Conversation

@LimiNode

@LimiNode LimiNode commented Sep 3, 2025

Copy link
Copy Markdown
Owner

Summary

  • add <algorithm> to HMAC and SHA source and header files so std::fill is defined

Testing

  • g++ -std=c++17 -Wall -Wextra -pedantic -c hmac.cpp sha1.cpp sha256.cpp sha512.cpp example.cpp
  • g++ -std=c++17 -Wall -Wextra -pedantic -c -x c++ - <<'EOF' && echo "templates compiled" #include "sha1.hpp" #include "sha256.hpp" #include "sha512.hpp" int main(){ std::vector<uint8_t> v(1); auto r1 = hmac_hash::sha1(v); auto r2 = hmac_hash::sha256(v); auto r3 = hmac_hash::sha512(v); (void)r1; (void)r2; (void)r3; return 0; } EOF

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

@LimiNode
LimiNode merged commit d0a6c78 into main Sep 3, 2025
4 checks passed
@LimiNode
LimiNode deleted the codex/add-include-algorithm-to-files branch September 4, 2025 01:41
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