Skip to content

Forward arguments in logging functions#65

Merged
zkat merged 1 commit intomainfrom
sy/forward-logging
Aug 18, 2025
Merged

Forward arguments in logging functions#65
zkat merged 1 commit intomainfrom
sy/forward-logging

Conversation

@TartanLlama
Copy link
Copy Markdown
Collaborator

Arguments to logging functions were not all std::forwarded. This PR makes it consistent across all logging functions.

@TartanLlama
Copy link
Copy Markdown
Collaborator Author

Fixes #59

@TartanLlama TartanLlama requested a review from zkat August 18, 2025 16:15
@TartanLlama
Copy link
Copy Markdown
Collaborator Author

Importantly, this fixes compiler errors when passing lvalues to these functions, as the types to the format strings have ref qualifier mismatches in this case

@zkat zkat linked an issue Aug 18, 2025 that may be closed by this pull request
@zkat zkat merged commit 940a546 into main Aug 18, 2025
10 checks passed
@zkat zkat deleted the sy/forward-logging branch August 18, 2025 18:16
@zkat zkat added technical improvement Non-user-visible technical improvement bug Something isn't working and removed technical improvement Non-user-visible technical improvement labels Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

std::forward all args in logger functions

2 participants