Boost logo

Boost Users :

Subject: [Boost-users] a tuple from a pair?
From: Krzysztof Żelechowski (giecrilj_at_[hidden])
Date: 2011-09-21 10:54:26

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.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at