Quick Q: Is 'auto' type deduction static (compile time) or dynamic (run time)?

Recently on StackOverflow:

C++ 11 auto compile time or runtime?

auto a = 10;

When compiler knows a is int, at compile time or at run-time? If it deduce type at run-time, will it not affect performance?

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.