Handle storing functions by value when using generics
Open
@philberty is already working on this.
Since Jun 19, 2025.
enhancement
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
struct BinOp<F: Fn(i32) -> i32> {
lhs: i32,
rhs: i32,
f: F,
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.