C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Make class template parameters available externally
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2019-10-30 16:49:28


On Wed, 30 Oct 2019 at 23:41, Dmitry <dimanne_at_[hidden]> wrote:
>>
>> template <class shama, class lama>
>> struct X;
>>
>> template <class ding, class dong>
>> struct X;
>>
>> template <class RealNames, class GoHere>
>> struct X
>> {
>> };
>
>
> Since my proposal essentially makes
> using RealNames = _RealNames
> using GoHere = GoHere_
> implicitly generated, then answer to your question is the names of the last X class.

So, basically,

1) when looking for a nested name, do normal lookup
2) if that didn't find anything, look into the template parameters

If I then _don't_ want to expose such a template parameter name, what do I do?


STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups