[cfe-dev] Adding template default parameter with as typed explicit parameter
pcanal at fnal.gov
Fri Sep 28 01:49:33 PDT 2012
On 9/28/12 1:07 AM, Eli Friedman wrote:
> Hmm... yes, that's possible, but I'm not sure we'd want to pay the
> price in memory usage/compile-time for normal compiles (IIRC, the
> relevant code is in semantic analysis, so we would have to pre-compute
> it then).
Could we enable this feature only when explicitly requested, for
example via a language option? (Especially since - as you pointed out -
the correct values can only be calculated in-flight during the semantic
If the language option ("SugaredDefaultTemplateArgs"?) makes sense
I'll propose a patch.
More information about the cfe-dev