
On Wed, Oct 05, 2011 at 09:07:56PM +0200, Krzysztof Żelechowski wrote:
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. --
Are you sure you're not misunderstanding what your implementation does?
VC10 and GCC 4.4.5 makes (rightfully so) a 1-tuple with an element of
type pair