On 2016-05-25 20:55, Meta wrote:

Is that true? I don't claim to know exactly how the compiler works, but
given a template lambda:

foo => 3

Doesn't it generate something like the following?

template __lambda10293(T)
{
     <deduced return type> __lambda10293(T foo)
     {
         return 3;
     }
}

In that case, "foo" is not a template parameter, but a runtime
parameter, so template parameter introspection would not help in this case.


Well, a runtime parameter in a template then :)

--
/Jacob Carlborg

Reply via email to