C++ Logo

std-proposals

Advanced search

Re: [std-proposals] explicit keyword (new use)

From: Ivan Matek <libbooze_at_[hidden]>
Date: Thu, 5 May 2022 23:01:29 +0200
On Sun, May 1, 2022 at 9:57 AM Abdullah Qasim via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> int func (int var, explicit int select_menu)
>
>
Beside the font and ! and CAPS LOCK I really like your attempt to make code
less buggy.
Unfortunately/fortunately I am not sure it requires language changes,
AFAIK what you want is achievable <https://godbolt.org/z/hPMP85Mhn>with
-Wconversion , I am a bit disappointed nobody mentioned it already(or am I
missing the point of the discussion?).

Received on 2022-05-05 21:01:41