
On 9/4/07, Graham Reitz
One of my colleagues has asked me, "why not use a simple struct over a tuple?"
Unfortunately, I couldn't give a convincing answer, which means I probably don't understand tuple well enough.
What is a good way to respond to this? Then we can identify when it makes better sense to use a struct versus a tuple.
It probably depends on the application, but tuples are nice for
returning multiple values from a function. For example
boost::tuple