The following program doesn't work. It does if I tie to a tuple. I suspect it should work, but aren't sure why. It's possible this isn't a bug and is in fact a bug in the TR1 standard, but I know boost's implementation of tie and tuple support it. Don't try debugging this unless you enjoy digging through evil macro filled template code :)
I'm going to look at this in about a week once I've finished moving to the other end of the country and didn't want to forget it. #include <tr1/tuple> #include <tr1/utility> int main(void) { std::pair<int,int> p(1,1); int a,b; std::tr1::tie(a,b) = p; } -- Summary: tr1::tie doesn't work with std::pair Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: minor Priority: P2 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23978