I am kind of annoyed that C++0x doesn't support multiple return values as such:
Code:int, int GetValues(int x, int y) { return (x), (y); } int main() { int x; int y; x,y = GetValues(1,2); }
I mean, this is one of the most useful expansions that could be made to C++ and it is not added to C++0x?
What do you guys think?
PS: I don't need you to explain to me that I can make a function likeas this is just annoying to code (which is the problem).Code:void GetValues(int x, int y, int &x, int &y)




Reply With Quote