There are a lot of other ways: Pointers, passing / returning a vector that holds the results, etc. Of course, if the returning values are of different types, then you'll most likely have to use references, or a struct similar to pair (Like C++0x's tuple)

05-04-2009

twomers

Or return a structure if you want to return a number of variable types.

Yuk! I would use a std:: pair, boost::tuple or struct, or just pass reference parameters as stated above. I don't think pointers would be good in this case since there are easier and safer methods available.