Phil Bouchard
2018-11-19 04:55:05 UTC
Greetings,
The if statement should have some for-like syntax in order to initialize a
variable and evaluate a condition. Ex:
if (ClassA a = getA(); a.isValid())
{
cout << "a is valid" << endl;
}
This is much cleaner!
Regards,
-Phil
The if statement should have some for-like syntax in order to initialize a
variable and evaluate a condition. Ex:
if (ClassA a = getA(); a.isValid())
{
cout << "a is valid" << endl;
}
This is much cleaner!
Regards,
-Phil
--
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-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/85675c90-57f3-4db8-8419-a34cacefa483%40isocpp.org.
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-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/85675c90-57f3-4db8-8419-a34cacefa483%40isocpp.org.