This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/23978] New: tr1::tie doesn't work with std::pair
- From: "chris at bubblescope dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2005 12:29:40 -0000
- Subject: [Bug libstdc++/23978] New: tr1::tie doesn't work with std::pair
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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