Allow protocol to accept non-class types
Open
design
- Dominant language
- C++
- Stars
- 11
- Forks
- 4
- Avg merge
- 16h 39m
- Merged PRs (30d)
- 131
Description
```c++
struct Interface{};
protocol p(15); // ERROR: "int is not a complete class type"
```
Should this work? I think probably yes since it will be relevant once there is complete operator support.
Contributor guide
Research direction
Start with the protocol construction shown in the issue and trace the code path that rejects int as an incomplete class type. Determine whether non-class types should be accepted and how that relates to the mentioned operator support; the example should compile with behavior covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100