C++ Logo

std-proposals

Advanced search

[std-proposals] explicit keyword (new use)

From: Abdullah Qasim <iamminecraftredstoner_at_[hidden]>
Date: Sun, 1 May 2022 07:57:31 +0000
int func (int var, explicit int select_menu)

{

    /// ...

}



Why would I want user to put a double value in select_menu ???



Also, why would I want to disallow a double in var ???



The solution:

            Allow explicit in param list!!



Not too hard to implement, either.

Received on 2022-05-01 07:57:33