4 ms·
You can use named parameters. https://pdimov.github.io/blog/2020/09/07/named-parameters-in-c20/ https://pdimov.github.io/blog/2020/09/07/named-parameters-in...
by Gibbon1 5y ago
You can use named parameters.
https://pdimov.github.io/blog/2020/09/07/named-parameters-in-c20/ https://pdimov.github.io/blog/2020/09/07/named-parameters-in...
- deleted 5y ago[deleted]
- signa11 5y agoyes ! named parameters are an option. it would be quite cool if c++ did have c99's equivalent of designated initializers, and without the restrictions of 1. following decl-order while doing the initializations and 2. omitting unwanted or unneeded parameter values probably, to some extent, 1 follows from 2 ?
- Gibbon1 5y agoLast time I looked a few years ago there was some issue with class instantiation and the order of initialization that was holding them back from implementing designated initializers. Can't remember the details.