Thanks for reading
yep, an exception!
main() {auto {a = 2 + 3;x = new X();{int b = a + 5;}//here b is out of scope!//But if i declare b using 'auto' in this way:auto {b = a + 5;}new_var = b + a; //b is visible{auto example = 2;}//here example is out of scope!}}
yep, an exception!main() {auto {a = 2 + 3;x = new X();{int b = a + 5;}//here b is out of scope!//But if i declare b using 'auto' in this way:auto {b = a + 5;}new_var = b + a; //b is visible{auto example = 2;}//here example is out of scope!}
Hello,Instead of writing a long list of variables with 'auto':
x := val;
x := type{val};
x : type = val;
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposal...@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.
This is especially good for for-init statements, working with two iterators or so.