In answering this question the question arose as to whether the traditional C meaning of the keyword auto
(automatic storage) is still valid in C++0x now that it means type deduction.
I remember that the old meaning of auto
should remain where relevant but others disagreed.
auto char c = 42; // either compilation error or c = '*'
Looking at compilers I see the current division.
- Old meaning of auto is no longer allowed
- VS10
- g++
- Old meaning of auto is used where relevant
Do you know which is the correct behaviour?