Date: Mon, 12 Feb 2024 16:25:43 -0500
See also WG14 N3200 (Transparent Aliases)
<https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3200.htm>. The
motivation is different but there is overlap.
Tom.
On 2/12/24 3:37 PM, Lénárd Szolnoki via Std-Proposals wrote:
> Hi,
>
> On Mon, 2024-02-12 at 22:14 +0200, Baruch Burstein via Std-Proposals
> wrote:
>> Hi,
>> I would like to suggest an addition to the core language. The idea is
>> to allow using `using` to create function aliases, similar to type
>> aliases. e.g.
>>
>> template <class T>
>> int foo() { ... }
>>
>> using foo_int = foo<int>;
>>
>> My questions are as follows:
>> 1. Has this been suggested/discussed before and already decided to
>> not do it? If so, please point me to the reasoning.
> I'm aware of one similar recent proposal, although with different
> syntax:
>
> https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2826r1.html
>
> Personally I would prefer a `using` syntax.
>
>> 2. Does anyone see an obvious reason this would not work / be a bad
>> idea, and so no point in pursuing it?
> I think it is a great idea. At least the other similar paper had good
> feedback so far.
>
>> 3. Assuming none of the above, what would be the procedure to suggest
>> this? What are my chances of actually getting something into the core
>> language?
> Read up on
> https://isocpp.org/std/standing-documents/sd-7-mailing-procedures-and-how-to-write-papers
> if you want to submit a paper.
>
> Consider collaborating with the author of the existing P2826 paper (I
> CC'd him). In any case, you should read that proposal.
>
>> Thank you
> Cheers,
> Lénárd
<https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3200.htm>. The
motivation is different but there is overlap.
Tom.
On 2/12/24 3:37 PM, Lénárd Szolnoki via Std-Proposals wrote:
> Hi,
>
> On Mon, 2024-02-12 at 22:14 +0200, Baruch Burstein via Std-Proposals
> wrote:
>> Hi,
>> I would like to suggest an addition to the core language. The idea is
>> to allow using `using` to create function aliases, similar to type
>> aliases. e.g.
>>
>> template <class T>
>> int foo() { ... }
>>
>> using foo_int = foo<int>;
>>
>> My questions are as follows:
>> 1. Has this been suggested/discussed before and already decided to
>> not do it? If so, please point me to the reasoning.
> I'm aware of one similar recent proposal, although with different
> syntax:
>
> https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2826r1.html
>
> Personally I would prefer a `using` syntax.
>
>> 2. Does anyone see an obvious reason this would not work / be a bad
>> idea, and so no point in pursuing it?
> I think it is a great idea. At least the other similar paper had good
> feedback so far.
>
>> 3. Assuming none of the above, what would be the procedure to suggest
>> this? What are my chances of actually getting something into the core
>> language?
> Read up on
> https://isocpp.org/std/standing-documents/sd-7-mailing-procedures-and-how-to-write-papers
> if you want to submit a paper.
>
> Consider collaborating with the author of the existing P2826 paper (I
> CC'd him). In any case, you should read that proposal.
>
>> Thank you
> Cheers,
> Lénárd
Received on 2024-02-12 21:25:46