On 24/11/11 10:38 PM, Andrej Mitrovic wrote:
But I bet you would waste more memory at compile-time if you had to
type a long template instance name instead of using auto. We're
talkin' bytes here!

Actually, using `auto` should be faster because the compiler doesn't need to do any name lookup.

auto x = foo(); // deduce type of Foo and use that

Foo x = foo(); // find out what 'Foo' refers to, but also deduce type of foo() and then do type checking.

Reply via email to