$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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