Date: Tue, 01 Oct 2024 14:08:27 -0700
On Tuesday 1 October 2024 03:19:30 GMT-7 Frederick Virchanza Gotham via Std-
Proposals wrote:
> Of course this 'Act' method _looks_ _like_ a template function because
> it has 'auto' in its parameter list, but really since 'args' is passed
> directly to the 'Do' method, we know that 'Do' really has only two
> possible signatures:
>
> double Do(int);
> int Do(char, char, char);
>
> which means that 'Act' can really only have two possible signatures:
>
> double Act(int);
> int Act(char, char, char);
False.
You can call Act(0U) thus creating an Act(unsigned) and that unsigned
parameter is converted to int upon calling Do().
Proposals wrote:
> Of course this 'Act' method _looks_ _like_ a template function because
> it has 'auto' in its parameter list, but really since 'args' is passed
> directly to the 'Do' method, we know that 'Do' really has only two
> possible signatures:
>
> double Do(int);
> int Do(char, char, char);
>
> which means that 'Act' can really only have two possible signatures:
>
> double Act(int);
> int Act(char, char, char);
False.
You can call Act(0U) thus creating an Act(unsigned) and that unsigned
parameter is converted to int upon calling Do().
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel DCAI Platform & System Engineering
Received on 2024-10-01 21:08:29