Subject: Re: [std-proposals] Make class template parameters available externally
From: Dmitry (dimanne_at_[hidden])
Date: 2019-11-02 03:41:47
> references apply only to class types, and its a valid question because the
> template argument itself is a const-lvalue if it is a class type.
Yes, you are right, it is possible now to take address of a class type
arguments (and it looks like it even works in the latest gcc: godbolt
Well, then it makes sense to make them references. So that the address of a
class type argument taken inside the scope of a class were the same as the
address of the same argument taken outside.
STD-PROPOSALS list run by herb.sutter at gmail.com
Standard Proposals Archives on Google Groups