Expression

what is this expression declare?

 
auto a = {1, 2};
When in doubt, typeid! http://ideone.com/SlkqD2

a is an initializer list of two ints. Interestingly, it's the same as auto a {1, 2}; (without the =).
Last edited on
Topic archived. No new replies allowed.