From: Jaakko Jarvi (jajarvi_at_[hidden])
Date: 2004-05-05 11:56:11
On May 4, 2004, at 7:56 PM, Fredrik Blomqvist wrote:
> I think it would be convenient if one could treat std::pair as a boost
> Both tuples::tie and tuple assignment already work with std::pair but
> noticed that the get<> accessor doesn't.
> So, I propose a simple extension to tuples::get<> with the obvious
> boost::get<0>(p) == p.first
> boost::get<1>(p) == p.second
The trouble with get is that pairs live in namespace std, so if pair
get's are not
in std, they won't get found by ADL. But if we are willing to live with
not having ADL,
adding gets for pairs would be fine.
> The only reference I found in the archives was a post by Tomas Witt
> "Tuple extension proposal":
> Should I submit the code I've got or does something like this already
> (I've tested the code using VC7.1, it doesn't rely on PTS although
Please send a patch or code.