ParentFull threadbobmoretti·The std::tie function can also solve this problem in most situations, if you are stuck with C++ 11.View on HN