C++ Logo

std-proposals

Advanced search

Re: Make class template parameters available externally

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 30 Oct 2019 23:49:28 +0200
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?

Received on 2019-10-30 16:51:56