Boost logo

Boost Users :

Subject: Re: [Boost-users] a tuple from a pair?
From: Krzysztof Żelechowski (giecrilj_at_[hidden])
Date: 2011-10-05 15:07:56


Krzysztof Żelechowski wrote:

> How come a tuple, being a generalisation of a pair, cannot be constructed
> from one?
>
> I mean something along the lines
>
> make_tuple (pair const &p) { return make_tuple (p.first, p_second); }
>
> Would be good to have.

It turns out that TR1 supports constructing a tuple directly from a pair,
so Boost should catch up.

IMHO,
Chris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net