QuoteOriginally posted by: PolterSame rules as always, cannot re-declare the variable.It would be equivalent todouble x = 0.0;and thenint x = 0;However, perhaps you can get some of what you want with variadic generic lambdas:
http://stackoverflow.com/questions/2588 ... lambdaNote how `list` is just a single (variadic generic) lambda but can still take a varying number of differently typed arguments:auto three = length(list(1, '2', "3"));I see. I realize now that the lambda creates a run-time closure object and the parameters probably are part of the function call operator signature. Then only one class name will be generated by the compiler is my hunch.A lambda walks and talks like a function but it is not a function in the usual sense.