This is not a proposal, this is a question. 

The message could have been “how can I make classes default to sane values without writing to std-proposals about introducing new keywords?”

WL

On May 1, 2022, at 4:15 AM, Abdullah Qasim via Std-Proposals <std-proposals@lists.isocpp.org> wrote:



 

int menu (/**/requires/**/ unsigned int menu_option = 0)
 
// Called as:
menu(default);
 
// OR:
menu(5)
 
// Compiler Error: function "menu(unsigned int)" requires //unsigned int variable
menu()
 
I do not want calls like menu(), but I do want ability to call menu(default), as, in this case, going to default screen makes perfect sense.

 

--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals