Repository navigation
Conversation
When building `test/exec/sequence/test_write_env_sequence.cpp` with my
local Mac build environment (Clang 23.1.0), I get the following build
errors:
```
test/exec/sequence/test_write_env_sequence.cpp:253:10: error: unused
function template 'set_next' [-Werror,-Wunused-template]
253 | auto set_next(Item&& item) noexcept
| ^~~~~~~~
test/exec/sequence/test_write_env_sequence.cpp:263:10: error: unused
function template 'set_error' [-Werror,-Wunused-template]
263 | void set_error(Error&&) noexcept
| ^~~~~~~~~
2 errors generated.
```
This diff fixes the problem by marking the two problematic member
functions with `[[maybe_unused]]`. I did this rather than delete them so
that the containing class remains a sequence sender.
ispeters
force-pushed
the
fix-unused-template
branch
from
October 29, 2026 02:24
6f2904d to
730537a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When building
test/exec/sequence/test_write_env_sequence.cppwith my local Mac build environment (Clang 23.1.0), I get the following build errors:This diff fixes the problem by marking the two problematic member functions with
[[maybe_unused]]. I did this rather than delete them so that the containing class remains a sequence sender.