this post was submitted on 04 Aug 2023
6 points (100.0% liked)
C++
1732 readers
4 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Well, you can't exactly have required parameters that way. At keast not to my knowledge
It is possible if they are added as regular function parameters before the struct parameter but somehow I find that a bit ugly..